]> 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>
Wed, 17 Feb 2021 15:35:21 +0000 (16:35 +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

bin/tests/system/run.sh.in

index 146b499581c35962f37750e810fcec79bbeb2d62..d3f088dcb511baedf3114a3915546f9a53c52e19 100644 (file)
@@ -294,7 +294,7 @@ fi
 
 print_outstanding_files() {
     if test -d ${srcdir}/../../../.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'