summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <Johannes.Schindelin@gmx.de>2008-08-01 16:01:36 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-08-03 14:05:55 -0700
commit6612f877cc94e80cd0c7393a8ea6bfea69146b3c (patch)
tree936a286e2ffaf1c2a608f2f63d5adf657aeb74c3 /t
parentdiff: chapter and part in funcname for tex (diff)
downloadtgif-6612f877cc94e80cd0c7393a8ea6bfea69146b3c.tar.xz
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')
-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 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