From: Fred T. Hamster Date: Fri, 17 Jan 2025 21:45:41 +0000 (-0500) Subject: fiddling with current dir X-Git-Tag: 2.140.189^2~29 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=da30fd852deba42d6af07cd34cd0a09912e2ed9c;p=feisty_meow.git fiddling with current dir --- diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index 05ad10ee..b0bccc89 100644 --- a/scripts/rev_control/version_control.sh +++ b/scripts/rev_control/version_control.sh @@ -102,7 +102,8 @@ echo "calculated nicedir as '$nicedir'" elif [ -d ".git" -o ! -z "$(seek_writable ".git" "up")" ]; then # if the simple name exists, use that. otherwise try to seek upwards for .git folder. if [ -d ".git" ]; then - topdir=".git" + directory="$( \cd . && /bin/pwd )" + topdir="$directory/.git" else topdir="$(seek_writable ".git" "up")" fi @@ -113,10 +114,14 @@ fi if [ ! -z "$topdir" ]; then # jump to the directory above the .git directory, to make git happy. +echo "pushing this dir: $topdir/.." pushd "$topdir/.." &>/dev/null +newdir="$( \cd . && /bin/pwd )" +echo "now dir is set to $newdir" +#is this right now? # take steps to make sure the branch integrity is good and we're up to date against remote repos. - do_revctrl_careful_update "$topdir" + do_revctrl_careful_update "$topdir/.." if [ -f "$NO_CHECKIN" ]; then $tell_no_checkin