You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/tests
chase@chromium.org 37c629a3b1 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
Review URL: http://codereview.chromium.org/438012

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@32999 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
..
pymox
README.gclient_test
__init__.py
gcl_unittest.py Avoid losing CL description during Rietveld outage. 16 years ago
gclient_scm_test.py Call git diff --name-status with a relative path. 15 years ago
gclient_test.py
gclient_utils_test.py
presubmit_unittest.py
revert_unittest.py
scm_unittest.py Call git diff --name-status with a relative path. 15 years ago
super_mox.py
trychange_unittest.py
watchlists_unittest.py

README.gclient_test

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# Copyright 2008-2009, Google Inc.

To run the gclient's unit tests, you need to checkout pymox and install it:
svn co http://pymox.googlecode.com/svn/trunk pymox
cd pymox
python setup.py install