Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

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
Expand Up @@ -135,8 +135,10 @@ function count_unlock_achievement
function unalias_command function unalias_command
{ {
#XXX maybe this should be recursive? #XXX maybe this should be recursive?
local cmdline=$(git config --get "alias.$1") if [ -n $1 ] && [[ $1 != -* ]]; then
echo $cmdline local cmdline=$(git config --get "alias.$1")
echo $cmdline
fi
} }


function check_for_achievements function check_for_achievements
Expand Down

0 comments on commit 6dd2907

Please sign in to comment.