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

Issue 1830313002: Use tracking remote name for gerrit upload. (Closed)

Created:
4 years, 9 months ago by alokp
Modified:
4 years, 9 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use tracking remote name for gerrit upload. This patch replaces the hard-coded remote name 'origin' with the one obtained by git-remote. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=299491

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -6 lines) Patch
M git_cl.py View 3 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
alokp
Robbie: I do not know the history behind the hard-coded remote name for gerrit upload, ...
4 years, 9 months ago (2016-03-24 21:08:36 UTC) #2
iannucci
It looks like ukai@ committed the original. Specifically, I know nothing about this function or ...
4 years, 9 months ago (2016-03-24 21:26:44 UTC) #4
iannucci
+tandrii@ who's also been working around the git-cl tools recently
4 years, 9 months ago (2016-03-24 21:27:48 UTC) #6
tandrii(chromium)
Thanks for patch! Have you ran the tests? If you did, LGTM. Land through CQ ...
4 years, 9 months ago (2016-03-24 21:49:30 UTC) #7
alokp
Thanks for your review. I did not run the tests. I am not sure which ...
4 years, 9 months ago (2016-03-24 23:41:39 UTC) #8
ukai
lgtm
4 years, 9 months ago (2016-03-25 01:47:32 UTC) #9
alokp
I am going to try the CQ to see if any expectations need updating.
4 years, 9 months ago (2016-03-25 04:33:02 UTC) #10
alokp
I am going to try the CQ to see if any expectations need updating.
4 years, 9 months ago (2016-03-25 04:33:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830313002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830313002/1
4 years, 9 months ago (2016-03-25 04:33:18 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1) as http://src.chromium.org/viewvc/chrome?view=rev&revision=299491
4 years, 9 months ago (2016-03-25 04:35:55 UTC) #15
tandrii(chromium)
oh, yet another example of insufficient test coverage :(
4 years, 9 months ago (2016-03-25 17:03:22 UTC) #16
tandrii(chromium)
4 years, 8 months ago (2016-03-28 15:41:45 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/1835923002/ by tandrii@chromium.org.

The reason for reverting is: Argh, this has broken uploading track-ed branches.
Repro:

git new-branch base-feature
touch x1 && git add x1 && git commit -m "x1"
git cl upload
git new-branch --upstream_current dep-feature
touch y1 && git add y1 && git commit -m "y1"
git cl upload -v -v # fails.


the verbose output produces this:
---cut---
DEBUG:root:git push .
7079b1682431184375b62e7e81ce10a02171aa0d:refs/for/refs/heads/master
To .
 ! [rejected]        7079b1682431184375b62e7e81ce10a02171aa0d ->
refs/for/refs/heads/master (non-fast-forward)
error: failed to push some refs to '.'
---cut---.

Powered by Google App Engine
This is Rietveld 408576698