Commit d2d18614 authored by jochen@chromium.org's avatar jochen@chromium.org

Add a heuristic to skip git checkouts not managed by crup

BUG=171500
R=szager@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12051022

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@178350 0039d316-1c4b-4281-b951-d872f2087c98
parent 0df1e0de
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment