Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't try to unalias when just running 'git' or when passing flags li…

…ke --help
  • Loading branch information...
commit 6dd2907a11f61acf6016064675c33c1ff7849c4a 1 parent f9edb91
@reidab reidab authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 git-achievements
View
6 git-achievements
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.