X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-cherry.sh;h=f0e8831fa49ae46eb7ad664b6ad489e3974c9f91;hb=fb6a9f93d39e4e5fdb83673a927f71a34e9fb7c0;hp=1a6232013b471d9a3df6ab10705c263aa740c2f7;hpb=b4a081b428c607f98c5d0a0eec8d543dc1f2abcd;p=git.git diff --git a/git-cherry.sh b/git-cherry.sh index 1a623201..f0e8831f 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