summaryrefslogtreecommitdiff
path: root/t/t5000-tar-tree.sh
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2007-04-09 15:12:53 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-04-10 01:51:40 (GMT)
commit8ff21b1a3307c7059ea1e00b5117a50a2bc5fec8 (patch)
tree42ad4b42cd839195a95b427260975fd129566a41 /t/t5000-tar-tree.sh
parent5bcbc7ff1014c58e7296713926206bf6a69e0f4c (diff)
downloadgit-8ff21b1a3307c7059ea1e00b5117a50a2bc5fec8.zip
git-8ff21b1a3307c7059ea1e00b5117a50a2bc5fec8.tar.gz
git-8ff21b1a3307c7059ea1e00b5117a50a2bc5fec8.tar.bz2
git-archive: make tar the default format
As noted by Junio, --format=tar should be assumed if no format was specified. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t5000-tar-tree.sh')
-rwxr-xr-xt/t5000-tar-tree.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index b4359df..e223c07 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -50,8 +50,16 @@ test_expect_success \
git-commit-tree $treeid </dev/null)'
test_expect_success \
+ 'git-archive' \
+ 'git-archive HEAD >b.tar'
+
+test_expect_success \
'git-tar-tree' \
- 'git-tar-tree HEAD >b.tar'
+ 'git-tar-tree HEAD >b2.tar'
+
+test_expect_success \
+ 'git-archive vs. git-tar-tree' \
+ 'diff b.tar b2.tar'
test_expect_success \
'validate file modification time' \