Commit 7080e942 authored by nasser@codeaurora.org's avatar nasser@codeaurora.org

Fix @hash in DEPS file

Broken by the @branchname support

Review URL: http://codereview.chromium.org/907004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@41585 0039d316-1c4b-4281-b951-d872f2087c98
parent de8f352e
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment