From a4794f3aa2af3183e2429f67188d50a477ab7a3a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 7 Jul 2017 11:45:53 +0100 Subject: [PATCH] test-functions: If copying, force checkout of upstream origin/master. In case our local copy is ahead of origin. --- test-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-functions b/test-functions index 78f7054..771b6bc 100644 --- a/test-functions +++ b/test-functions @@ -28,7 +28,7 @@ function checkout_sources () if [ -d $HOME/d/$project ]; then cp -a $HOME/d/$project . pushd $project - git checkout -f master + git checkout -f origin/master -B master git clean -xdf git pull popd -- 1.8.3.1