diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-07-16 07:06:25 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-18 13:45:32 -0700 |
commit | 378932d3c3214cf658805af20c4bd101922d8fcd (patch) | |
tree | 19edf930c44afa447b70e538b56a0b676447900f /t/t3102-ls-tree-wildcards.sh | |
parent | f9e7d9f8c3e32280418a0bedd9d37f2a0cc2e2b9 (diff) | |
download | git-378932d3c3214cf658805af20c4bd101922d8fcd.tar.gz |
test-lib.sh: introduce and use $EMPTY_BLOB
Similar to $EMPTY_TREE this makes it easier to recognize this special
SHA-1 and change hash later.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3102-ls-tree-wildcards.sh')
-rwxr-xr-x | t/t3102-ls-tree-wildcards.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t3102-ls-tree-wildcards.sh b/t/t3102-ls-tree-wildcards.sh index 4d4b02e760..e804377f1c 100755 --- a/t/t3102-ls-tree-wildcards.sh +++ b/t/t3102-ls-tree-wildcards.sh @@ -12,16 +12,16 @@ test_expect_success 'setup' ' ' test_expect_success 'ls-tree a[a] matches literally' ' - cat >expect <<-\EOF && - 100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a[a]/three + cat >expect <<-EOF && + 100644 blob $EMPTY_BLOB a[a]/three EOF git ls-tree -r HEAD "a[a]" >actual && test_cmp expect actual ' test_expect_success 'ls-tree outside prefix' ' - cat >expect <<-\EOF && - 100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 ../a[a]/three + cat >expect <<-EOF && + 100644 blob $EMPTY_BLOB ../a[a]/three EOF ( cd aa && git ls-tree -r HEAD "../a[a]"; ) >actual && test_cmp expect actual |