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>
This commit is contained in:
Johannes Schindelin
2008-08-01 16:01:36 +02:00
committed by Junio C Hamano
parent 807d869453
commit 6612f877cc
2 changed files with 15 additions and 2 deletions

View File

@ -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