t9801: check git-p4's branch detection with client spec enabled
[gitweb.git] / git-sh-setup.sh
index d968760139b0e7b9219a1602a2e646a3ed398136..c42c6e6365090e22ec7892baa51b919f2898e956 100644 (file)
@@ -81,7 +81,7 @@ if test -n "$OPTIONS_SPEC"; then
                echo exit $?
        )"
 else
-       dashless=$(basename "$0" | sed -e 's/-/ /')
+       dashless=$(basename -- "$0" | sed -e 's/-/ /')
        usage() {
                die "usage: $dashless $USAGE"
        }