Skip to content

Commit

Permalink
util: change gitversion to report committer not author date
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtaylor authored and mmpcn committed Nov 27, 2014
1 parent ce80bd2 commit 767307b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/src/script/gitversion
Expand Up @@ -25,8 +25,8 @@
sha=`git show -s --format=%h`

# Get approximate date (no time, no timezone) of latest commit.
# This is the author, not the committer date - I think that makes sense?
date=`git show -s --format=%ai | sed 's/ .*//'`
# This is the committer, not the author date.
date=`git show -s --format=%ci | sed 's/ .*//'`

# Work out if the current status is modified from the latest commit.
if git status --porcelain | grep -q '^[MADRU ][MADRU ]'
Expand Down

0 comments on commit 767307b

Please sign in to comment.