aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-07-08 04:46:06 +0000
committerJunio C Hamano <gitster@pobox.com>2008-07-08 14:47:04 -0700
commit1db4a75c8d18d8827ac710e87219b349558d9196 (patch)
tree6c361b248445f35e3e5cae314cdcf68ca4960fc6 /t
parent0b294c0abf00a9cf7468e0ea62722ae23b0816cc (diff)
downloadgit-1db4a75c8d18d8827ac710e87219b349558d9196.tar.gz
git-1db4a75c8d18d8827ac710e87219b349558d9196.tar.xz
Remove unnecessary pack-*.keep file after successful git-clone
Once a clone is successful we no longer need to hold onto the .keep file created by the transport. Delete the file so we can later repack the complete repository. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t5601-clone.sh20
1 files changed, 19 insertions, 1 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index b642fb260..d785b3df7 100755
--- a/t/t5601-clone.sh
+++ b/t/t5601-clone.sh
@@ -17,14 +17,32 @@ test_expect_success setup '
'
-test_expect_success 'clone with excess parameters' '
+test_expect_success 'clone with excess parameters (1)' '
+ rm -fr dst &&
+ test_must_fail git clone -n src dst junk
+
+'
+
+test_expect_success 'clone with excess parameters (2)' '
+
+ rm -fr dst &&
test_must_fail git clone -n "file://$(pwd)/src" dst junk
'
+test_expect_success 'clone does not keep pack' '
+
+ rm -fr dst &&
+ git clone -n "file://$(pwd)/src" dst &&
+ ! test -f dst/file &&
+ ! (echo dst/.git/objects/pack/pack-* | grep "\.keep")
+
+'
+
test_expect_success 'clone checks out files' '
+ rm -fr dst &&
git clone src dst &&
test -f dst/file