connect.c: check the commit buffer boundary while parsing.
[gitweb.git] / git-pull.sh
index aa8c2080927661cca281fca543dc5f0808f678e3..076785c96b30b4fd8ab944324fd53db7c584567a 100755 (executable)
@@ -24,7 +24,7 @@ do
        -s|--s|--st|--str|--stra|--strat|--strate|--strateg|--strategy)
                case "$#,$1" in
                *,*=*)
-                       strategy=`expr "$1" : '-[^=]*=\(.*\)'` ;;
+                       strategy=`expr "z$1" : 'z-[^=]*=\(.*\)'` ;;
                1,*)
                        usage ;;
                *)