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

Unified Diff: git-cl

Issue 2962013: gclient: update git-cl whenever git-cl is run and not when gclient is run (Closed)
Patch Set: Created 10 years, 5 months 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 | « gclient ('k') | 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 babe5ace3c7943f7ba7c38b93a63c88595f7c0ea..4c568f7b6ca2170aaeeb1c74e7ec5102e96aae83 100755
--- a/git-cl
+++ b/git-cl
@@ -26,6 +26,10 @@ fi
if [ ! -f "$repo/git-cl" ]; then
git clone $url $repo -q
+elif [ ! -e "$base_dir/git-cl-repo/.git" ]; then
+ echo "$0: $base_dir/git-cl-repo does not appear to be a git repo"
+elif [ "X$DEPOT_TOOLS_UPDATE" != "X0" ]; then
+ (cd "$base_dir/git-cl-repo"; git pull -q)
fi
$repo/git-cl "$@"
« no previous file with comments | « gclient ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698