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

Unified Diff: git_cl.py

Issue 797793003: Add pending prefix to the target_ref if it is specified (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 6 years 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: git_cl.py
===================================================================
--- git_cl.py (revision 293354)
+++ git_cl.py (working copy)
@@ -1761,6 +1761,10 @@
'refs/heads/')
elif remote_branch.startswith('refs/remotes/branch-heads'):
remote_branch = remote_branch.replace('refs/remotes/', 'refs/')
+ pending_prefix = settings.GetPendingRefPrefix()
+ # If a pending prefix exists then replace refs/ with it.
+ if pending_prefix:
+ remote_branch = remote_branch.replace('refs/', pending_prefix)
upload_args.extend(['--target_ref', remote_branch])
project = settings.GetProject()
« 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