Skip to content

Commit 4813926

Browse files
trastgitster
authored andcommitted
Test git archive --remote
Add a small test case for git archive --remote (and thus git-upload-archive), which so far went untested. Signed-off-by: Thomas Rast <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6651c3f commit 4813926

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t5000-tar-tree.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ test_expect_success 'git archive with --output' \
9494
'git archive --output=b4.tar HEAD &&
9595
test_cmp b.tar b4.tar'
9696

97+
test_expect_success 'git archive --remote' \
98+
'git archive --remote=. HEAD >b5.tar &&
99+
test_cmp b.tar b5.tar'
100+
97101
test_expect_success \
98102
'validate file modification time' \
99103
'mkdir extract &&

0 commit comments

Comments
 (0)