diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-08-02 09:29:30 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-02 09:29:30 -0700 |
commit | 062aeee8aa426468817c5bea96d781289b272ced (patch) | |
tree | 4bdb3b965febcbe6008cc22a7470660735d3acba /t/t1006-cat-file.sh | |
parent | d099b7173dabdeeb1f339151ac2169b3a91bf631 (diff) | |
download | git-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-x | t/t1006-cat-file.sh | 7 |
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" |