Commit Graph

11 Commits (c3a15a238139bed048d9ca5feca94fe0578f2cb6)

Author SHA1 Message Date
msb@chromium.org 2a94904744 Isolate depot_tools update into a separate script.
Also, modify git-cl to also update depot_tools. Otherwise, the git-cl
script never gets updated for folks that only use git-cl but
not gclient. This fixes a bug ChromiumOS developers are currently seeing
where there git-cl checkout is still pointing to src.chromium.org
and not git.chromium.org.

BUG=none
TEST=Verified that git-cl help and gclient help work.

Review URL: http://codereview.chromium.org/3817011

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@62948 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
maruel@chromium.org 37801da395 Change git-cl wrapper script to automatically fix the git_cl_repo remote url.
This is nicer than an error message.

TEST=manually tested the url was overwritten
BUG=none

Review URL: http://codereview.chromium.org/3796010

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@62923 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
chase@chromium.org 733bc0fa18 Update git-cl to use git.chromium.org.
BUG=none
TEST=git-cl works
TBR=nsylvain@chromium.org
Review URL: http://codereview.chromium.org/3757006

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@62916 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
msb@chromium.org b48f2298b2 git-cl: change the git-cl-repo dir to git_cl_repo so that we can import
python does not seem to be able to import for a dir with dashes in it.

BUG=none
TEST=Ran git-cl help and verified it worked and new dir was created.

Review URL: http://codereview.chromium.org/3530012

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@61694 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
msb@chromium.org d065eccd01 gclient: update git-cl whenever git-cl is run and not when gclient is run
Rather than updating git-cl whenever gclient is invoked, update it
whenever git-cl is invoked.

In the chromium-os workflow, folks often run git-cl but rarely run gclient.
This results in folks running an older git-cl which may not
have the latest features/fixes.

TEST=

Tested that git-cl is updated when it is stale, git-cl is cloned when it doesn't exist and is not updated when DEPOT_TOOLS_UPDATE=0

Review URL: http://codereview.chromium.org/2962013

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@52236 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
derat@chromium.org e08f491731 depot_tools: Make git-cl wrapper not fail when repo is missing.
I broke this in my last change.

TBR=msb
Review URL: http://codereview.chromium.org/627004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@39277 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
derat@chromium.org b7ec6aa923 Make git-cl wrapper print errors instead of silently deleting repos.
It would previously delete and recreate git-cl-repo if it
saw that the remote was different than expected.  This looks
like it was added for the transition from the old SVN repo
to the new git one, but it also has the effect of losing
any local changes that have been made in the repo. :-(

Everyone should be updated by now, so print a helpful error
and exit instead.
Review URL: http://codereview.chromium.org/609002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@39099 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
msb@chromium.org dffe494206 Move git-cl to src.chromium.org
Review URL: http://codereview.chromium.org/397029

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@32259 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 2534063d34 Make initial git-cl and git-try fetch quieter.
Add .gitignore for causual ignores.

TEST=none
BUG=none

Review URL: http://codereview.chromium.org/159855


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22380 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 43418e4315 Evan lied to me. The stub script needed to use "$@" and not "$*".
Otherwise, all the parameters are coagulated into a single one.

TEST=none
BUG=none
Review URL: http://codereview.chromium.org/119308

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@17968 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org 565db0efab Add git-cl and git-try stubs.
They automatically git clone the original repository and execute the original script. So if they are first in the path, they will be executed. If a user has another git-cl/try in the path prior, these stubs won't be used at all and won't mess with the user's setup.

Also fix a bug with git handling in trychange.py
Review URL: http://codereview.chromium.org/119244

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@17737 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago