Don't shallow clone from file:// in integration test

Shallow cloning ends up writing a temporary file in the source git repo,
but we may not have write access to it. So if the REPO_ROOT format is
file based do a full clone.

Change-Id: Ic03af1e55b41a97790de478563100247c37065ab
This commit is contained in:
Joe Gordon
2015-05-12 16:22:16 -07:00
parent 77e1ba8d38
commit 3f3f2b4e37

View File

@@ -12,7 +12,12 @@ else
org=$1
project=$2
fi
git clone $REPO_ROOT/$org/$project --depth=1
if [[ $REPO_ROOT == file://* ]]; then
git clone $REPO_ROOT/$org/$project
else
git clone $REPO_ROOT/$org/$project --depth=1
fi
cd $project
set +e
flake8 --select H --statistics