From 382000769477ed0666e99d01c21df64df9ba0911 Mon Sep 17 00:00:00 2001 From: Pete Wyckoff Date: Sat, 19 Feb 2011 08:18:01 -0500 Subject: git-p4: support clone --bare Just like git clone --bare, build a .git directory but no checked out files. Signed-off-by: Pete Wyckoff Acked-By: Tor Arvid Lund Signed-off-by: Junio C Hamano --- t/t9800-git-p4.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 't/t9800-git-p4.sh') diff --git a/t/t9800-git-p4.sh b/t/t9800-git-p4.sh index 026277a47a..1969e6b9d3 100755 --- a/t/t9800-git-p4.sh +++ b/t/t9800-git-p4.sh @@ -80,6 +80,16 @@ test_expect_success 'wildcard files git-p4 clone' ' rm -rf "$git" && mkdir "$git" ' +test_expect_success 'clone bare' ' + "$GITP4" clone --dest="$git" --bare //depot && + cd "$git" && + test ! -d .git && + bare=`git config --get core.bare` && + test "$bare" = true && + cd "$TRASH_DIRECTORY" && + rm -rf "$git" && mkdir "$git" +' + test_expect_success 'shutdown' ' pid=`pgrep -f p4d` && test -n "$pid" && -- cgit v1.2.1