aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-08-28 16:05:40 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-08-28 16:06:03 +0200
commita5bb6387f751e630c329f34cac2d38bffa8ff9cf (patch)
tree865a1bdb0173ba09b87b87b11d320d0118ea294a /contrib/devtools
parent05e1c85fb687c82ae477c72d4a7e2d6b0c692167 (diff)
parentfafe7b3432d5117e3f207eafe2fca1f9637b24f6 (diff)
Merge #8607: [doc] Fix doxygen off-by-one comments, fix typos
fafe7b3 contrib: Make fix-copyright-headers.py more portable (MarcoFalke) fa27c0a [doc] Fix typos in comments, doxygen: Fix comment syntax (MarcoFalke) fabfd5d [qa] pull-tester: Don't mute zmq ImportError (MarcoFalke) 67a5502 init: Fix typo in help message for -whitelistforcerelay (Wladimir J. van der Laan)
Diffstat (limited to 'contrib/devtools')
-rwxr-xr-xcontrib/devtools/fix-copyright-headers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/devtools/fix-copyright-headers.py b/contrib/devtools/fix-copyright-headers.py
index b6414a551f..31a81ae4fa 100755
--- a/contrib/devtools/fix-copyright-headers.py
+++ b/contrib/devtools/fix-copyright-headers.py
@@ -16,7 +16,7 @@ import time
import re
year = time.gmtime()[0]
-CMD_GIT_DATE = 'git log --format=@%%at -1 %s | date +"%%Y" -u -f -'
+CMD_GIT_DATE = 'git log --format=%%ad --date=short -1 %s | cut -d"-" -f 1'
CMD_REGEX= "perl -pi -e 's/(20\d\d)(?:-20\d\d)? The Bitcoin/$1-%s The Bitcoin/' %s"
REGEX_CURRENT= re.compile("%s The Bitcoin" % year)
CMD_LIST_FILES= "find %s | grep %s"