Skip to content

Commit

Permalink
Don't try to unalias when just running 'git' or when passing flags li…
Browse files Browse the repository at this point in the history
…ke --help
  • Loading branch information
reidab committed Dec 6, 2011
1 parent f9edb91 commit 6dd2907
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions git-achievements
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ function count_unlock_achievement
function unalias_command
{
#XXX maybe this should be recursive?
local cmdline=$(git config --get "alias.$1")
echo $cmdline
if [ -n $1 ] && [[ $1 != -* ]]; then
local cmdline=$(git config --get "alias.$1")
echo $cmdline
fi
}

function check_for_achievements
Expand Down

0 comments on commit 6dd2907

Please sign in to comment.