mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
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
This commit is contained in:
8
git-cl
8
git-cl
@@ -4,9 +4,15 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
base_dir=$(dirname "$0")
|
||||
url="http://src.chromium.org/git/git-cl.git"
|
||||
cur_url=$(git config -f "$base_dir/git-cl-repo/.git/config" remote.origin.url)
|
||||
|
||||
if [ "$cur_url" != "$url" ]; then
|
||||
rm -rf $base_dir/git-cl-repo
|
||||
fi
|
||||
|
||||
if [ ! -f "$base_dir/git-cl-repo/git-cl" ]; then
|
||||
git clone git://neugierig.org/git-cl.git $base_dir/git-cl-repo -q
|
||||
git clone $url $base_dir/git-cl-repo -q
|
||||
fi
|
||||
|
||||
$base_dir/git-cl-repo/git-cl "$@"
|
||||
|
||||
Reference in New Issue
Block a user