summaryrefslogtreecommitdiffstats
path: root/chrome/tools
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 20:19:50 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 20:19:50 +0000
commit2d76dbe1e944be62d3cbf831b6de5864238ce981 (patch)
treee055dbd84c494e54d6c970245f597cdc2fa66573 /chrome/tools
parent2270e6ba2dc35f0ed3a9b89ba7c81d80c296ec1e (diff)
downloadchromium_src-2d76dbe1e944be62d3cbf831b6de5864238ce981.zip
chromium_src-2d76dbe1e944be62d3cbf831b6de5864238ce981.tar.gz
chromium_src-2d76dbe1e944be62d3cbf831b6de5864238ce981.tar.bz2
Fix for issue 9685:
Use git log | grep .. instead of git svn info (For tedoc2000) BUG=9685 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rwxr-xr-xchrome/tools/build/linux/version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/tools/build/linux/version.sh b/chrome/tools/build/linux/version.sh
index 85b9e18..ccaf35c 100755
--- a/chrome/tools/build/linux/version.sh
+++ b/chrome/tools/build/linux/version.sh
@@ -27,7 +27,7 @@ eval $(sed -e 's/\([^=]*\)=\(.*\)/\1="\2"/' \
LASTCHANGE=$(svn info 2>/dev/null | grep "Revision:" | cut -d" " -f2-)
if [ -z "$LASTCHANGE" ]; then
# Maybe it's a git client
- LASTCHANGE=$(git-svn info 2>/dev/null | grep "Revision:" | cut -d" " -f2-)
+ LASTCHANGE=$(git log | perl -lnwe 'if (s/^\s*git-svn-id:\s+.*\@(\d+)\s[a-f\d\-]+$/$1/) {print; exit; }')
fi
OFFICIAL_BUILD="false"