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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user