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

Unified Diff: gclient_scm.py

Issue 907004: Fix @hash in DEPS file (Closed)
Patch Set: Created 10 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: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index cc11612c3789ff6300b84ae4e639e36d764f6c0a..c65f48f94984700bc21bedd56c2525e0c012760e 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -168,8 +168,9 @@ class GitWrapper(SCMWrapper):
self._CheckMinVersion("1.6.6")
default_rev = "refs/heads/master"
- url, revision = gclient_utils.SplitUrlRevision(self.url)
+ url, deps_revision = gclient_utils.SplitUrlRevision(self.url)
rev_str = ""
+ revision = deps_revision
if options.revision:
# Override the revision number.
revision = str(options.revision)
@@ -288,7 +289,7 @@ class GitWrapper(SCMWrapper):
# this command VERY likely to produce a rebase failure. For now we
# assume origin is our upstream since that's what the old behavior was.
upstream_branch = 'origin'
- if options.revision:
+ if options.revision or deps_revision:
upstream_branch = revision
self._AttemptRebase(upstream_branch, files=files,
verbose=options.verbose, printed_path=printed_path)
« 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