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