+gitvertest="$(git version | sed -e 's/git version [0-9]\.//' | sed -e 's/\.0$//' )"
+echo gitvertest is $gitvertest
+if [[ $gitvertest > 9 ]]; then
+ # we believe auto-stash is not available until 2.9, but we are sure it was missing
+ # on ubuntu xenial with git 2.7.4.
+ PULL_ADDITION='--rebase --autostash'
+fi
+
+##############
+