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

Issue 6591093: Set cwd to the root of the git checkout when running git svn info. (Closed)

Created:
9 years, 9 months ago by M-A Ruel
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Set cwd to the root of the git checkout when running git svn info. URL value is dependent on the local directory. The current directory would affect Base URL on Rietveld otherwise. Do not use Repository Root instead of URL since git svn clone foo -T bar wouldn't be correctly based. Update RunCommand() to be able to pass cwd argument. TEST=git cl upload is broken if I break this code. BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76791

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M git_cl/git_cl.py View 3 chunks +4 lines, -3 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
M-A Ruel
I uploaded this change from within depot_tools/git_cl/ but base url was set correctly. As a ...
9 years, 9 months ago (2011-03-02 02:07:09 UTC) #1
Mark Seaborn
Looks good to me -- thanks for fixing this! I assume this is not covered ...
9 years, 9 months ago (2011-03-02 02:20:28 UTC) #2
M-A Ruel
On 2011/03/02 02:20:28, Mark Seaborn wrote: > Looks good to me -- thanks for fixing ...
9 years, 9 months ago (2011-03-02 02:26:14 UTC) #3
M-A Ruel
On 2011/03/02 02:26:14, Marc-Antoine Ruel wrote: > On 2011/03/02 02:20:28, Mark Seaborn wrote: > > ...
9 years, 9 months ago (2011-03-03 18:50:22 UTC) #4
Evan Martin
Can you elaborate on what this means: "Do not use Repository Root instead of URL ...
9 years, 9 months ago (2011-03-03 19:08:27 UTC) #5
M-A Ruel
On 2011/03/03 19:08:27, Evan Martin wrote: > Can you elaborate on what this means: > ...
9 years, 9 months ago (2011-03-03 19:11:15 UTC) #6
Evan Martin
Got it, thanks. LGTM
9 years, 9 months ago (2011-03-03 19:13:02 UTC) #7
Evan Martin
9 years, 9 months ago (2011-03-03 19:50:34 UTC) #8
http://codereview.chromium.org/6591093/diff/1/git_cl/git_cl.py
File git_cl/git_cl.py (right):

http://codereview.chromium.org/6591093/diff/1/git_cl/git_cl.py#newcode816
git_cl/git_cl.py:816: remote_url = keys.get('URL', None)
FYI, I just learned that "git svn info --url" does this more simply.  (You
shouldn't do this as part of this change, just thought you'd like to know.)

Powered by Google App Engine
This is Rietveld 408576698