summaryrefslogtreecommitdiff
path: root/t/t1006-cat-file.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-08-02 09:29:30 -0700
committerJunio C Hamano <gitster@pobox.com>2013-08-02 09:29:30 -0700
commit062aeee8aa426468817c5bea96d781289b272ced (patch)
tree4bdb3b965febcbe6008cc22a7470660735d3acba /t/t1006-cat-file.sh
parentd099b7173dabdeeb1f339151ac2169b3a91bf631 (diff)
downloadgit-062aeee8aa426468817c5bea96d781289b272ced.tar.gz
Revert "cat-file: split --batch input lines on whitespace"
This reverts commit c334b87b30c1464a1ab563fe1fb8de5eaf0e5bac; the update assumed that people only used the command to read from "rev-list --objects" output, whose lines begin with a 40-hex object name followed by a whitespace, but it turns out that scripts feed random extended SHA-1 expressions (e.g. "HEAD:$pathname") in which a whitespace has to be kept.
Diffstat (limited to 't/t1006-cat-file.sh')
-rwxr-xr-xt/t1006-cat-file.sh7
1 files changed, 0 insertions, 7 deletions
diff --git a/t/t1006-cat-file.sh b/t/t1006-cat-file.sh
index d499d02a29..4e911fb43d 100755
--- a/t/t1006-cat-file.sh
+++ b/t/t1006-cat-file.sh
@@ -78,13 +78,6 @@ $content"
echo $sha1 | git cat-file --batch-check="%(objecttype) %(objectname)" >actual &&
test_cmp expect actual
'
-
- test_expect_success '--batch-check with %(rest)' '
- echo "$type this is some extra content" >expect &&
- echo "$sha1 this is some extra content" |
- git cat-file --batch-check="%(objecttype) %(rest)" >actual &&
- test_cmp expect actual
- '
}
hello_content="Hello World"