From: Luc Sarzyniec Date: Wed, 16 Aug 2017 08:19:28 +0000 (+0200) Subject: Make the git-sync script ignore changes from the blacklist/README file X-Git-Tag: 2017-08-20~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4eed4ce78adb23479ca01d37186b99063d2d463e;p=thirdparty%2Fut1-blacklists.git Make the git-sync script ignore changes from the blacklist/README file Since this file is updated every day with the date, it should be ignored to avoid unecessary builds/releases. --- diff --git a/scripts/sync-git b/scripts/sync-git index 35677a03..b1ef71fa 100755 --- a/scripts/sync-git +++ b/scripts/sync-git @@ -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)