diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2020-06-20 00:39:39 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-22 18:52:02 +0200 |
commit | 3e04b6e1b672a2b38b1e2a7094bcc600e76959b1 (patch) | |
tree | 409002f6323649634f2d467b9c086bb0f3b969ee /t/t9101-git-svn-props.sh | |
parent | t9104: make hash size independent (diff) | |
download | git-3e04b6e1b672a2b38b1e2a7094bcc600e76959b1.tar.xz git-3e04b6e1b672a2b38b1e2a7094bcc600e76959b1.zip |
t9101: make hash independent
Instead of hard-coding the object ID for our test .gitignore file, let's
compute it.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Acked-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9101-git-svn-props.sh')
-rwxr-xr-x | t/t9101-git-svn-props.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/t/t9101-git-svn-props.sh b/t/t9101-git-svn-props.sh index c26c4b0927..8b5681dd68 100755 --- a/t/t9101-git-svn-props.sh +++ b/t/t9101-git-svn-props.sh @@ -160,11 +160,13 @@ cat >create-ignore.expect <<\EOF /no-such-file* EOF -cat >create-ignore-index.expect <<\EOF -100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0 .gitignore -100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0 deeply/.gitignore -100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0 deeply/nested/.gitignore -100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0 deeply/nested/directory/.gitignore +expectoid=$(git hash-object create-ignore.expect) + +cat >create-ignore-index.expect <<EOF +100644 $expectoid 0 .gitignore +100644 $expectoid 0 deeply/.gitignore +100644 $expectoid 0 deeply/nested/.gitignore +100644 $expectoid 0 deeply/nested/directory/.gitignore EOF test_expect_success 'test create-ignore' " |