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

Issue 518064: Check for the existence of git before running commands (Closed)

Created:
10 years, 11 months ago by Nasser Grainawi
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Check for the existence of git before running commands. Checks in the gclient wrapper and when running any gclient git command. TEST=none BUG=none Patch contributed by Nasser <nasser@codeaurora>

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed whitespace issues #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -2 lines) Patch
M gclient View 1 1 chunk +36 lines, -0 lines 1 comment Download
M gclient_scm.py View 1 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Nasser Grainawi
10 years, 11 months ago (2010-01-07 20:45:27 UTC) #1
M-A Ruel
http://codereview.chromium.org/518064/diff/1/3 File gclient_scm.py (right): http://codereview.chromium.org/518064/diff/1/3#newcode294 gclient_scm.py:294: raise gclient_utils.Error("git command '%s' failed to run.\ We use ...
10 years, 11 months ago (2010-01-07 20:50:36 UTC) #2
Nasser Grainawi
On 2010/01/07 20:50:36, Marc-Antoine Ruel wrote: > http://codereview.chromium.org/518064/diff/1/3 > File gclient_scm.py (right): > > http://codereview.chromium.org/518064/diff/1/3#newcode294 ...
10 years, 11 months ago (2010-01-07 22:37:33 UTC) #3
M-A Ruel
lgtm, will commit later.
10 years, 11 months ago (2010-01-07 23:32:15 UTC) #4
M-A Ruel
http://codereview.chromium.org/518064/diff/4001/4002 File gclient (right): http://codereview.chromium.org/518064/diff/4001/4002#newcode28 gclient:28: echo -n "Trying git-svn... " Actually, after trying the ...
10 years, 11 months ago (2010-01-08 01:12:43 UTC) #5
Lei Zhang
So I'm only using gclient with svn, but with this CL, it complains about my ...
10 years, 11 months ago (2010-01-08 22:20:09 UTC) #6
Lei Zhang
It looks like it's because I have depot_tools/git-cl-repo, even though I'm not actively using it.
10 years, 11 months ago (2010-01-08 22:23:51 UTC) #7
M-A Ruel
On 2010/01/08 22:23:51, Lei Zhang wrote: > It looks like it's because I have depot_tools/git-cl-repo, ...
10 years, 11 months ago (2010-01-08 22:26:08 UTC) #8
Nasser Grainawi
10 years, 11 months ago (2010-01-08 22:29:29 UTC) #9
On 2010/01/08 22:26:08, Marc-Antoine Ruel wrote:
> On 2010/01/08 22:23:51, Lei Zhang wrote:
> > It looks like it's because I have depot_tools/git-cl-repo, even though I'm
not
> > actively using it.
> 
> I kind of agree the check is overly aggressive (in addition of slowing down
> gclient). Nasser what do you think?

We can drop the check in gclient. The one in gclient_scm.py should catch
anything real (without slowing anyone down). I'll send in a new patch or you can
just revert all the changes to gclient.

Powered by Google App Engine
This is Rietveld 408576698