Skip to content

Commit

Permalink
Swapping the commands check
Browse files Browse the repository at this point in the history
This commit swaps the two exports of the commands "hub" and "gh" in the
aliases. The fact is the export of "gh" overwrites the previous one, and
the official GitHub client is using "hub" as command.

See mislav/hub#475.
Closes scmbreeze#209
  • Loading branch information
Test User committed Aug 15, 2016
1 parent db85db8 commit d4952b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ unset -f git > /dev/null 2>&1
# Use the full path to git to avoid infinite loop with git function
export _git_cmd="$(\which git)"
# Wrap git with the 'hub' github wrapper, if installed (https://github.com/defunkt/hub)
if type hub > /dev/null 2>&1; then export _git_cmd="hub"; fi
if type gh > /dev/null 2>&1; then export _git_cmd="gh"; fi
if type hub > /dev/null 2>&1; then export _git_cmd="hub"; fi

# Create 'git' function that calls hub if defined, and expands all numeric arguments
function git(){
Expand Down

0 comments on commit d4952b5

Please sign in to comment.