]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
contrib/gcc_update: Insert "tformat:" for git log --pretty=tformat:%p:%t:%H
authorHans-Peter Nilsson <hp@axis.com>
Fri, 17 Jan 2020 07:42:32 +0000 (08:42 +0100)
committerHans-Peter Nilsson <hp@axis.com>
Fri, 17 Jan 2020 07:43:31 +0000 (08:43 +0100)
Really old git versions (like 1.6.0) require
"git log --pretty=tformat:%p:%t:%H"
or else we see:

Updating GIT tree
Current branch master is up to date.
fatal: invalid --pretty format: %p:%t:%H
Adjusting file timestamps
Touching gcc/config.in...
Touching gcc/config/arm/arm-tune.md...

...and an empty revision in LAST_UPDATED and gcc/REVISION.
In its absence, for newer git versions, "tformat" is the default
qualifier, documented as such default for at least git-2.11.0.

contrib/ChangeLog
contrib/gcc_update

index 16d0667694d6edcc3dc343541b81d38b7b214fc8..4e89b8d611b6d8266ec32b3547b2b59f45320453 100644 (file)
@@ -1,3 +1,8 @@
+2020-01-17  Hans-Peter Nilsson  <hp@axis.com>
+
+       * gcc_update <git revision>: Use git log "--pretty=tformat:%p:%t:%H",
+       not "--pretty=%p:%t:%H".
+
 2020-01-16  Andreas Schwab  <schwab@linux-m68k.org>
 
        * gcc-git-customization.sh: Avoid double expansion.
index 5df3297f7f83a03ab8b2a8eafd9219b949bcd84e..8c980b15ad36524e76186c1bc3790f0e7c362f99 100755 (executable)
@@ -330,7 +330,7 @@ case $vcs_type in
             exit 1
        fi
 
-       revision=`$GCC_GIT log -n1 --pretty=%p:%t:%H`
+       revision=`$GCC_GIT log -n1 --pretty=tformat:%p:%t:%H`
        branch=`$GCC_GIT name-rev --name-only HEAD || :`
        ;;