Changeset 28604


Ignore:
Timestamp:
2011-10-26T16:54:57+02:00 (6 years ago)
Author:
jow
Message:

[scripts] getver.sh: cope with varying "git log" line formats to reliably extract the git-svn rev (#10268)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/getver.sh

    r17864 r28604  
    1919try_git() { 
    2020        [ -d .git ] || return 1 
    21         REV="$(git log | grep -m 1 git-svn-id | awk '{ gsub(/.*@/, "", $2); print $2 }')" 
     21        REV="$(git log | grep -m 1 git-svn-id | awk '{ gsub(/.*@/, "", $0); print $1 }')" 
    2222        REV="${REV:+r$REV}" 
    2323        [ -n "$REV" ] 
Note: See TracChangeset for help on using the changeset viewer.