From: Fred Hamster Date: Wed, 15 Jan 2025 15:46:21 +0000 (-0500) Subject: still seeking weird issue for update X-Git-Tag: 2.140.189^2~30 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=6c3188052a6ece5d13e799cb4de15f601422feab;p=feisty_meow.git still seeking weird issue for update --- diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index faecce61..05ad10ee 100644 --- a/scripts/rev_control/version_control.sh +++ b/scripts/rev_control/version_control.sh @@ -100,8 +100,16 @@ echo "calculated nicedir as '$nicedir'" fi fi elif [ -d ".git" -o ! -z "$(seek_writable ".git" "up")" ]; then - topdir="$(seek_writable ".git" "up")" + # if the simple name exists, use that. otherwise try to seek upwards for .git folder. + if [ -d ".git" ]; then + topdir=".git" + else + topdir="$(seek_writable ".git" "up")" + fi echo "got topdir from seeking of '$topdir'" +if [ -z "$topdir" ]; then +echo "hey, topdir is blank!!!! bad news." +fi if [ ! -z "$topdir" ]; then # jump to the directory above the .git directory, to make git happy.