Skip to content

Commit d4952b5

Browse files
author
Test User
committed
Swapping the commands check
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
1 parent db85db8 commit d4952b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/aliases.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ unset -f git > /dev/null 2>&1
1919
# Use the full path to git to avoid infinite loop with git function
2020
export _git_cmd="$(\which git)"
2121
# Wrap git with the 'hub' github wrapper, if installed (https://github.com/defunkt/hub)
22-
if type hub > /dev/null 2>&1; then export _git_cmd="hub"; fi
2322
if type gh > /dev/null 2>&1; then export _git_cmd="gh"; fi
23+
if type hub > /dev/null 2>&1; then export _git_cmd="hub"; fi
2424

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

0 commit comments

Comments
 (0)