]> git.ipfire.org Git - thirdparty/ut1-blacklists.git/commitdiff
Make the git-sync script ignore changes from the blacklist/README file
authorLuc Sarzyniec <luc.sarzyniec@xilopix.com>
Wed, 16 Aug 2017 08:19:28 +0000 (10:19 +0200)
committerLuc Sarzyniec <luc.sarzyniec@xilopix.com>
Wed, 16 Aug 2017 08:34:27 +0000 (10:34 +0200)
Since this file is updated every day with the date, it should be ignored
to avoid unecessary builds/releases.

scripts/sync-git

index 35677a03f21835c4d064fa1fdc6f72373eae2d00..b1ef71faaaf793c26546662f3c67452a515b0586 100755 (executable)
@@ -8,7 +8,9 @@ set -x
 
 # if there is some changes in the repository: commit, tag and push them
 git add -N blacklists/
-if ! git diff --exit-code > /dev/null
+if ! git diff --exit-code -- . ':!blacklists/README' > /dev/null
+# (do not take in account changes that only affects the blacklists/README file
+# since this file is updated every day with the date)
 then
        git commit -am "Automatic blacklist update"
        tag=$(date +%Y-%m-%d)