]> git.ipfire.org Git - thirdparty/git.git/commit - t/t6050-replace.sh
t6050: redirect expected error output to a file
authorChristian Couder <christian.couder@gmail.com>
Sun, 31 Mar 2019 13:46:57 +0000 (15:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2019 08:49:00 +0000 (17:49 +0900)
commit587617016744448ace200804aed9edccb436f38e
tree203cc45f0acf29c0914eb6e145270cd7376f43fc
parent502d87b9e3ee6faadae45d545e0e257ef8948f0b
t6050: redirect expected error output to a file

Otherwise the error from `git rev-parse` is uselessly
polluting the debug output.

Redirecting to a file, instead of /dev/null, makes it
possible to check that we got the error we expected, so
let's check that too.

Reviewed-by: Taylor Blau <me@ttaylorr.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6050-replace.sh