From 02a440953b8565d5d2039ec2e4eee2d918f479c0 Mon Sep 17 00:00:00 2001 From: spacewander Date: Thu, 8 Oct 2015 14:06:46 +0800 Subject: [PATCH] replace wildcard '?' to literal '?' Previously the `?` in the case statement will match any single letter. As a result, `git scp a` will act as the same as `git scp -h`. What we actually need is a literal '?'. --- bin/git-scp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-scp b/bin/git-scp index e12c3c9..c9c2f21 100755 --- a/bin/git-scp +++ b/bin/git-scp @@ -170,7 +170,7 @@ function _error() case $(basename $0) in git-scp) case $1 in - ''|-h|?|help|--help) shift; _test_git_scp; _usage $@;; + ''|-h|'?'|help|--help) shift; _test_git_scp; _usage $@;; *) scp_and_stage $@;; esac ;;