You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(update): install.sh update path crashes when ~/.local/share/budjira is not a git checkout #98
install.sh gates its update path on directory existence, not on the
directory being a git checkout:
# install.sh:41if [ -d"$INSTALL_DIR" ];then# $INSTALL_DIR = ~/.local/share/budjiracd"$INSTALL_DIR"
git fetch --quiet origin # fails if there is no .git here
git reset --hard origin/master --quiet
git clean -fd --quiet
else
git clone ... "$INSTALL_DIR"fi
When ~/.local/share/budjira exists but is not a git checkout (interrupted
or corrupted earlier install, missing .git), the update branch is taken and git fetch aborts with "not a git repository".
Reproduce
mkdir -p /tmp/x &&cd /tmp/x && git fetch --quiet origin
# fatal: not a git repository (or any of the parent directories): .git
Fix
Gate on $INSTALL_DIR/.git instead of $INSTALL_DIR, and self-heal: if a
non-git directory exists, remove it and re-clone.
install.sh is fetched live from master at update time (hardcoded URL in version.py:174) and is not part of the installed package. The fix takes effect
for every budjira update as soon as it lands on master — no version bump.
Workaround until merged
rm -rf ~/.local/share/budjira
curl -LsSf https://raw.githubusercontent.com/cdds-ab/budjira/master/install.sh | sh
Activity
github-actions commentedon Jul 17, 2026
Sensitive Data Detected
This repository is PUBLIC! Please remove sensitive information.
Found potential issues:
companyinsteadAction needed:
user@example.comacme-corpcompany.atlassian.netjohn.doe@f3rdy Please sanitize this issue!