Skip to content

Commit

Permalink
Merge pull request #2390 from dsifford/patch-1
Browse files Browse the repository at this point in the history
use `command grep` vs `grep`
  • Loading branch information
mislav authored Dec 15, 2019
2 parents 7b02a66 + 410e841 commit f88ff18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/hub.bash_completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ EOF
# revision. For example:
# $ hub compare -u upstream
# > https://github.com/USER/REPO/compare/upstream
if __hub_github_repos '\p' | grep -Eqx "^$i(/[^/]+)?"; then
if __hub_github_repos '\p' | command grep -Eqx "^$i(/[^/]+)?"; then
arg_repo=$i
else
rev=$i
Expand Down Expand Up @@ -344,7 +344,7 @@ EOF
format=${format//\o/\3}
fi
command git config --get-regexp 'remote\.[^.]*\.url' |
grep -E ' ((https?|git)://|git@)github\.com[:/][^:/]+/[^/]+$' |
command grep -E ' ((https?|git)://|git@)github\.com[:/][^:/]+/[^/]+$' |
sed -E 's#^remote\.([^.]+)\.url +.+[:/](([^/]+)/[^.]+)(\.git)?$#'"$format"'#'
}

Expand Down

0 comments on commit f88ff18

Please sign in to comment.