Skip to content

Commit

Permalink
Merge pull request #51 from reidab/with_unalias_fix
Browse files Browse the repository at this point in the history
Don't attempt to unalias blank $1 or $1 that starts with "-"
  • Loading branch information
icefox committed Dec 7, 2011
2 parents f9edb91 + 6dd2907 commit 9a8921e
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
{
#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 9a8921e

Please sign in to comment.