From 565db0efab8eca42ec75031c547344832a55ab3a Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Fri, 5 Jun 2009 18:08:54 +0000 Subject: [PATCH] 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 --- git-cl | 12 ++++++++++++ git-try | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 git-cl create mode 100755 git-try diff --git a/git-cl b/git-cl new file mode 100755 index 0000000000..5a8f7cc047 --- /dev/null +++ b/git-cl @@ -0,0 +1,12 @@ +#!/bin/sh +# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +base_dir=$(dirname "$0") + +if [ ! -f "$base_dir/git-cl-repo/git-cl" ]; then + git clone git://neugierig.org/git-cl.git $base_dir/git-cl-repo +fi + +$base_dir/git-cl-repo/git-cl "$*" diff --git a/git-try b/git-try new file mode 100755 index 0000000000..f50cea1037 --- /dev/null +++ b/git-try @@ -0,0 +1,12 @@ +#!/bin/sh +# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +base_dir=$(dirname "$0") + +if [ ! -f "$base_dir/git-try-repo/git-try" ]; then + git clone git://neugierig.org/git-try.git $base_dir/git-try-repo +fi + +$base_dir/git-try-repo/git-try "$*"