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

Unified Diff: crup-runner.sh

Issue 12051022: Add a heuristic to skip git checkouts not managed by crup (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: updates Created 7 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crup-runner.sh
diff --git a/crup-runner.sh b/crup-runner.sh
index 987dcc2939f6556686ff1746cbc681fa5e737f15..b82206727f65583b8c0170c5381f7e6c2505b713 100755
--- a/crup-runner.sh
+++ b/crup-runner.sh
@@ -64,6 +64,12 @@ solution="${1%%/*}"
cd "$solution"
if [ "$solution" = "$1" ]; then
+ # Skip git checkouts not managed by crup.
+ if ! grep -q -s "The Chromium Authors" ".git/description"; then
+ echo "Skipping unmanaged git directory $1" 1>&2
+ exit 0
+ fi
+
# Don't "pull" if checkout is not on a named branch
shift
if test "$2" = "pull" && ( ! git symbolic-ref HEAD >/dev/null 2>/dev/null ); then
« 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