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

Unified Diff: git-cl

Issue 5012006: Move git-cl into depot_tools.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | git_cl/LICENSE » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git-cl
===================================================================
--- git-cl (revision 69967)
+++ git-cl (working copy)
@@ -4,23 +4,6 @@
# found in the LICENSE file.
base_dir=$(dirname "$0")
-repo="$base_dir/git_cl_repo"
-url="http://git.chromium.org/git/git-cl.git"
-cur_url=$(git config -f "$repo/.git/config" remote.origin.url)
"$base_dir"/update_depot_tools
-
-if [ -e "$repo" -a "$cur_url" != "$url" ]; then
- # Always override "origin"
- (cd "$repo"; git remote set-url origin $url)
-fi
-
-if [ ! -f "$repo/git-cl" ]; then
- git clone $url $repo -q
-elif [ ! -e "$repo/.git" ]; then
- echo "$0: $repo does not appear to be a git repo"
-elif [ "X$DEPOT_TOOLS_UPDATE" != "X0" ]; then
- (cd "$repo"; git pull -q)
-fi
-
-$repo/git-cl "$@"
+"$base_dir"/git_cl/git-cl "$@"
« no previous file with comments | « no previous file | git_cl/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698