function git-bug-push set -l remote (test -n "$argv[1]"; and echo $argv[1]; or git rev-parse --abbrev-ref --symbolic-full-name @{u} | cut -d'/' -f1) echo "pushing bugs to '$remote' remote..." >&2 git push $remote --prune "refs/bugs/*" "refs/identities/*" end