# 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-9][0-9]*$//' )"
-#hmmm: temp below!
-echo gitvertest is $gitvertest
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
# fixes the ownership for a site avenger or php application.
# this almost certainly will require sudo capability, if there are any ownership problems
# that need to be resolved.
-function fix_ownership()
+function fix_appdir_ownership()
{
local appsdir="$1"; shift
local dir="$1"; shift
# hmmm: pass the real user name who should own the files?
# hmmm: "$(logname)" $USER works, but logname wasn't?
-fix_ownership "$BASE_APPLICATION_PATH" "$APPLICATION_NAME"
+fix_appdir_ownership "$BASE_APPLICATION_PATH" "$APPLICATION_NAME"
sep