test-functions: If copying, force checkout of upstream origin/master.
[patchq.git] / test-functions
index 78f7054..771b6bc 100644 (file)
@@ -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