From 6c3188052a6ece5d13e799cb4de15f601422feab Mon Sep 17 00:00:00 2001 From: Fred Hamster Date: Wed, 15 Jan 2025 10:46:21 -0500 Subject: [PATCH] still seeking weird issue for update --- scripts/rev_control/version_control.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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. -- 2.34.1