If I clone a git repository like this
git clone <some-repository>
git creates a directory, named as the 'humanish' part of the source repository. (according to the man page).
Now I want to create a bash script that clones a repository, 'cds' into the newly created directory, and does some stuff. Is there an easy way for the bash script to know the name of the created directory, without explicitly providing a directory to the 'git clone' command?