X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-format-patch.sh;h=c7133bc12624a7d00ea8c36b8f55207c16127bf4;hb=50ac7408018209a2829b7948119270fec7e14ec8;hp=2ebf7e8596eaf9253cf302a01d9f9fb8c08041cf;hpb=e4a0e2aac0e667a3a9b4449c5be4e084c4a9c44e;p=git.git diff --git a/git-format-patch.sh b/git-format-patch.sh index 2ebf7e85..c7133bc1 100755 --- a/git-format-patch.sh +++ b/git-format-patch.sh @@ -126,8 +126,8 @@ for revpair do case "$revpair" in ?*..?*) - rev1=`expr "$revpair" : '\(.*\)\.\.'` - rev2=`expr "$revpair" : '.*\.\.\(.*\)'` + rev1=`expr "z$revpair" : 'z\(.*\)\.\.'` + rev2=`expr "z$revpair" : 'z.*\.\.\(.*\)'` ;; *) rev1="$revpair^"