From 6612f877cc94e80cd0c7393a8ea6bfea69146b3c Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 1 Aug 2008 16:01:36 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- t/t5601-clone.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 't/t5601-clone.sh') 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 .git' ' + + git clone --bare src && + test -d src.git + +' + test_done -- cgit v1.2.1