diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2008-08-01 16:01:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-03 14:05:55 -0700 |
commit | 6612f877cc94e80cd0c7393a8ea6bfea69146b3c (patch) | |
tree | 936a286e2ffaf1c2a608f2f63d5adf657aeb74c3 /t/t5601-clone.sh | |
parent | 807d86945336f676c9f650a6cbae9baa3191aaec (diff) | |
download | git-6612f877cc94e80cd0c7393a8ea6bfea69146b3c.tar.gz |
clone --bare: Add ".git" suffix to the directory name to clone into
We have a tradition that bare repositories live in directories ending
in ".git". To make this more a convention than just a tradition, teach
"git clone --bare" to add a ".git" suffix to the directory name.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5601-clone.sh')
-rwxr-xr-x | t/t5601-clone.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index a5334570ad..57173b4c50 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -82,4 +82,11 @@ test_expect_success 'clone --mirror' ' ' +test_expect_success 'clone --bare names the local repository <name>.git' ' + + git clone --bare src && + test -d src.git + +' + test_done |