summaryrefslogtreecommitdiff
path: root/t/t5601-clone.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2008-08-01 14:01:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-08-03 21:05:55 (GMT)
commit6612f877cc94e80cd0c7393a8ea6bfea69146b3c (patch)
tree936a286e2ffaf1c2a608f2f63d5adf657aeb74c3 /t/t5601-clone.sh
parent807d86945336f676c9f650a6cbae9baa3191aaec (diff)
downloadgit-6612f877cc94e80cd0c7393a8ea6bfea69146b3c.zip
git-6612f877cc94e80cd0c7393a8ea6bfea69146b3c.tar.gz
git-6612f877cc94e80cd0c7393a8ea6bfea69146b3c.tar.bz2
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-xt/t5601-clone.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index a533457..57173b4 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