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

Unified Diff: git-cl

Issue 397029: Move git-cl to src.chromium.org (Closed)
Patch Set: Created 11 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git-cl
diff --git a/git-cl b/git-cl
index 5f24afd954a51b8a4bc45ff4dac24fe3342e97fb..bb3568b6fcec98ab06cb373e8f77f4b1dd49c5ad 100755
--- a/git-cl
+++ b/git-cl
@@ -4,9 +4,15 @@
# found in the LICENSE file.
base_dir=$(dirname "$0")
+url="http://src.chromium.org/git/git-cl.git"
M-A Ruel 2009/11/18 00:13:58 This is cool but somewhat aggressive, especially w
+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 "$@"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698