Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / scripts / rev_control / version_control.sh
index 5b7ef8cce128d5bc1a5903ac673d4c95a27bd90b..0c8cec27eb097936b340c611d8c7bda5fbf27b7a 100644 (file)
@@ -15,14 +15,15 @@ source "$FEISTY_MEOW_SCRIPTS/tty/terminal_titler.sh"
 # this appears to be an ubuntu issue, where xenial did not provide it even though the
 # feature appeared in git 2.6 and xenial claims it has git version 2.7.4.  eventually,
 # this version test can go away.
-gitvertest="$(git version | sed -e 's/git version [0-9]\.//' | sed -e 's/\.0$//' )"
-#hmmm: temp below!
-echo gitvertest is $gitvertest
+gitvertest="$(git version | sed -e 's/git version [0-9]\.//' | sed -e 's/\.[0-9][0-9]*$//' )"
 if (( $gitvertest >= 11 )); then
   # auto-stash is not available until 2.6 for git, but ubuntu is misreporting or using a
   # differing version number somehow.  we are sure autostash was missing on ubuntu xenial
   # with git 2.7.4 and it's definitely present in zesty with git at 2.11.
-  PULL_ADDITION='--rebase --autostash'
+#  PULL_ADDITION='--rebase --autostash'
+#although initially attractive, above set of flags seems to lose history we don't want to
+#lose.
+PULL_ADDITION=
 fi
 
 ##############