From 3f3f2b4e37f19a5182965e6e3442c5062c9fc12f Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Tue, 12 May 2015 16:22:16 -0700 Subject: [PATCH] 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 --- integration-test/test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/integration-test/test.sh b/integration-test/test.sh index 90a3220..5da0c03 100755 --- a/integration-test/test.sh +++ b/integration-test/test.sh @@ -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