chore(git-bug): improve alias execution and refresh
Amolith
created
Explicitly wrap git-bug aliases in `fish -c` to ensure correct shell
execution regardless of the default shell.
Update `git-bug-pull` to use `--git-common-dir` for improved
compatibility across different repository setups and automatically
refresh the bug cache after pulling new bugs.
@@ -3,6 +3,6 @@ function git-bug-pull
echo "fetching bugs from '$remote' remote..." >&2
git fetch $remote "refs/bugs/*:refs/bugs/*" "refs/identities/*:refs/identities/*"
- set git_dir (git rev-parse --git-dir)- test -d $git_dir/git-bug/cache/; and rm -rf $git_dir/git-bug/cache/
+ set git_dir (git rev-parse --git-common-dir)
+ test -d $git_dir/git-bug/cache/; and rm -rf $git_dir/git-bug/cache/; and git bug bug
end