summaryrefslogtreecommitdiff
path: root/t/chainlint/loop-in-if.test
diff options
context:
space:
mode:
authorLibravatar SZEDER Gábor <szeder.dev@gmail.com>2018-08-22 20:13:19 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-22 11:52:35 -0700
commit79b04f9b60cb60859ec8d65eec3dc9ac9626f63b (patch)
treea8b078f7eb69c88543acb67a6c0d72863df4ed9d /t/chainlint/loop-in-if.test
parentGit 2.18 (diff)
downloadtgif-79b04f9b60cb60859ec8d65eec3dc9ac9626f63b.tar.xz
t3903-stash: don't try to grep non-existing file
The test 'store updates stash ref and reflog' in 't3903-stash.sh' creates a stash from a new file, runs 'git reset --hard' to throw away any modifications to the work tree, and then runs '! grep' to ensure that the staged contents are gone. Since the file didn't exist before, it shouldn't exist after 'git reset' either. Consequently, this 'grep' doesn't fail as expected, because it can't find the staged content, but it fails because it can't open the file. Tighten this check by using 'test_path_is_missing' instead, thereby avoiding an unexpected error from 'grep' as well. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/chainlint/loop-in-if.test')
0 files changed, 0 insertions, 0 deletions