diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-04-24 23:39:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-24 23:39:47 -0700 |
commit | 4d0912a206a32e9763424363617e8425f049f344 (patch) | |
tree | 95d0682c16b961e6c87d5fbe5ef05f45c8945ff9 /builtin/symbolic-ref.c | |
parent | test-lib: abort when can't remove trash directory (diff) | |
download | tgif-4d0912a206a32e9763424363617e8425f049f344.tar.xz |
test-lib.sh: do not barf under --debug at the end of the test
The original did "does $remove_trash exist? Then go one level above
and remove it". There was no problem under "--debug", where
the variable is left empty, as the first "test -d $remove_trash" would
have said "No, it doesn't".
With the check implemented in the previous step, we'd always get an
error under "--debug".
Noticed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/symbolic-ref.c')
0 files changed, 0 insertions, 0 deletions