]> rtime.felk.cvut.cz Git - git.git/commitdiff
Test git archive --remote
authorThomas Rast <trast@student.ethz.ch>
Sat, 27 Jun 2009 18:47:43 +0000 (20:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 27 Jun 2009 20:15:39 +0000 (13:15 -0700)
Add a small test case for git archive --remote (and thus
git-upload-archive), which so far went untested.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5000-tar-tree.sh

index abb41b07ef1985d53c2186617e6b2fcf7e7fe033..5f84b18fa5f0f199905bc7fc045672b70035a708 100755 (executable)
@@ -94,6 +94,10 @@ test_expect_success 'git archive with --output' \
     'git archive --output=b4.tar HEAD &&
     test_cmp b.tar b4.tar'
 
+test_expect_success 'git archive --remote' \
+    'git archive --remote=. HEAD >b5.tar &&
+    test_cmp b.tar b5.tar'
+
 test_expect_success \
     'validate file modification time' \
     'mkdir extract &&