Do not spam console if "git status --ignored" fails during tests
The "git status" command in Git versions before 1.7.2 does not support
the "--ignored" option. Prevent spamming the console when running
system tests from a Git repository on a host with an ancient Git version
installed.
(cherry picked from commit 2be97feb46)
This commit is contained in:
@@ -194,7 +194,7 @@ else
|
||||
$SHELL clean.sh $runall $systest "$@"
|
||||
if test -d ../../../.git
|
||||
then
|
||||
git status -su --ignored $systest | \
|
||||
git status -su --ignored $systest 2>/dev/null | \
|
||||
sed -n -e 's|^?? \(.*\)|I:file \1 not removed|p' \
|
||||
-e 's|^!! \(.*/named.run\)$|I:file \1 not removed|p' \
|
||||
-e 's|^!! \(.*/named.memstats\)$|I:file \1 not removed|p'
|
||||
|
||||
Reference in New Issue
Block a user