Skip to content

Commit

Permalink
Don't fetch branches while completing accept-work
Browse files Browse the repository at this point in the history
The fetching is removed as it works too long. As the alternative,
a user can fetch fresh updates by himself/herself.
  • Loading branch information
extsoft committed Jul 29, 2019
1 parent 418bffb commit fa99021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/git-elegant.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _git_elegant() {
return 0 ;;
accept-work)
COMPREPLY=(
$(compgen -W "$(git fetch --all &>/dev/null; git branch --remotes --list)" -- ${cur})
$(compgen -W "$(git branch --remotes --list)" -- ${cur})
)
return 0 ;;
*)
Expand Down

0 comments on commit fa99021

Please sign in to comment.