aboutsummaryrefslogtreecommitdiff
path: root/git-cherry.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-cherry.sh')
-rwxr-xr-xgit-cherry.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cherry.sh b/git-cherry.sh
index 1a6232013..f0e8831fa 100755
--- a/git-cherry.sh
+++ b/git-cherry.sh
@@ -20,7 +20,7 @@ case "$1" in -v) verbose=t; shift ;; esac
case "$#,$1" in
1,*..*)
- upstream=$(expr "$1" : '\(.*\)\.\.') ours=$(expr "$1" : '.*\.\.\(.*\)$')
+ upstream=$(expr "z$1" : 'z\(.*\)\.\.') ours=$(expr "z$1" : '.*\.\.\(.*\)$')
set x "$upstream" "$ours"
shift ;;
esac