Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: chrome/tools/build/linux/version.sh

Issue 60094: Fix for issue 9685: (Closed)
Patch Set: Missed /$1/ Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/build/linux/version.sh
diff --git a/chrome/tools/build/linux/version.sh b/chrome/tools/build/linux/version.sh
index 85b9e181789aa578d8fd7358737ab9445612bec3..ccaf35cf93656865af5769118c6714a1d116e7cd 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"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698