function git-bug-pull 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 "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/ end