From fbd878ffedb074647041cd42006b64d757216226 Mon Sep 17 00:00:00 2001 From: Amolith Date: Thu, 9 Oct 2025 19:54:49 -0600 Subject: [PATCH] chore(git-bug): improve alias execution and refresh 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. --- dot_config/git/config.tmpl | 4 ++-- dot_config/private_fish/functions/git-bug-pull.fish | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dot_config/git/config.tmpl b/dot_config/git/config.tmpl index 23126935070ddf1124c29cd35ddbe5ed3eb5d4a6..f255f79fa805c34e3a321fe6704e0e951732c3bd 100644 --- a/dot_config/git/config.tmpl +++ b/dot_config/git/config.tmpl @@ -19,8 +19,8 @@ pl = pull bugs = bug bug create-bug = bug bug new - push-bugs = !git-bug-push - pull-bugs = !git-bug-pull + push-bugs = !fish -c 'git-bug-push' + pull-bugs = !fish -c 'git-bug-pull' [user] name = Amolith email = amolith@secluded.site diff --git a/dot_config/private_fish/functions/git-bug-pull.fish b/dot_config/private_fish/functions/git-bug-pull.fish index 10e8fe426da9fd95cabee12c5f9c758ba4675d26..5f7580b795a367a4b09d1b9e120e39e752da4564 100644 --- a/dot_config/private_fish/functions/git-bug-pull.fish +++ b/dot_config/private_fish/functions/git-bug-pull.fish @@ -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