stash: simplify option parser for create
[gitweb.git] / git-stash.sh
index bbefdf64244063f4708f381b8a772466d64e90e5..64800b8c945cbb478797eaa564c7c857494a6f44 100755 (executable)
@@ -546,10 +546,7 @@ clear)
        clear_stash "$@"
        ;;
 create)
-       if test $# -gt 0 && test "$1" = create
-       then
-               shift
-       fi
+       shift
        create_stash "$*" && echo "$w_commit"
        ;;
 drop)