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
experimental/szager/collated-output
nasser@codeaurora.org 15 years ago
parent de8f352ebb
commit 7080e94277

@ -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)

Loading…
Cancel
Save