]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Prevent Git to expand $systest
authorMichal Nowak <mnowak@isc.org>
Tue, 16 Feb 2021 10:33:58 +0000 (11:33 +0100)
committerMichal Nowak <mnowak@isc.org>
Thu, 18 Feb 2021 07:20:54 +0000 (08:20 +0100)
CentOS 8 "git status" unexpectedly expands search directory "tsig" to
also search in the "tsiggss" directory, thus incorrectly identifying
files as "not removed" in the "tsig" directory:

$ git status -su --ignored tsig
$ touch tsiggss/ns1/{named.run,named.memstats}
$ git status -su --ignored tsig
!! tsiggss/ns1/named.memstats
!! tsiggss/ns1/named.run

(cherry picked from commit f310b7525031e2017d4d793e9db5cb5a83392851)

bin/tests/system/run.sh

index 7124a6cf320640d50a525730d5ffe0f8e3fe1604..31f4c20b176a8c87745dca055cd985cbb3a85452 100755 (executable)
@@ -312,7 +312,7 @@ else
     if $clean; then
        ( cd $systest && $SHELL clean.sh "$@" )
        if test -d ../../../.git; then
-           git status -su --ignored "${systest}" 2>/dev/null | \
+           git status -su --ignored "${systest}/" 2>/dev/null | \
            sed -n -e 's|^?? \(.*\)|I:'${systest}':file \1 not removed|p' \
            -e 's|^!! \(.*/named.run\)$|I:'${systest}':file \1 not removed|p' \
            -e 's|^!! \(.*/named.memstats\)$|I:'${systest}':file \1 not removed|p'