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

Issue 438012: Call git diff --name-status with a relative path.... (Closed)

Created:
11 years, 1 month ago by chase
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel, Evan Martin
CC:
chromium-reviews_googlegroups.com, M-A Ruel
Visibility:
Public.

Description

Call git diff --name-status with a relative path. On a new Linux box, during git cl dcommit I observed the error: fatal: invalid diff option/value: -r This was caused by the git cl presubmit hooks running: git diff --name-status -r refs/remotes/origin/trunk.. /path/to/src By passing a relative path (given by git rev-parse --show-cdup) instead of an absolute path for /path/to/src, git diff --name-status does not print an error and returns the expected list of changed files. Also fix some broken scm and gclient_scm unit tests. BUG=none TEST=git presubmit hooks work from main working directory Committed as r32999

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M git_cl_hooks.py View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M tests/gclient_scm_test.py View 1 chunk +1 line, -1 line 0 comments Download
M tests/scm_unittest.py View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
chase
11 years, 1 month ago (2009-11-24 00:57:26 UTC) #1
M-A Ruel
lgtm sorry for the unit test
11 years, 1 month ago (2009-11-24 02:21:06 UTC) #2
chase
11 years, 1 month ago (2009-11-24 23:33:59 UTC) #3
On 2009/11/24 02:21:06, Marc-Antoine Ruel wrote:
> lgtm
> 
> sorry for the unit test

got lgtm from evanm over im, and it seems like we all agree this is weird.  i
will monitor feedback for any issues.

Powered by Google App Engine
This is Rietveld 408576698