t5505: do not assume the "matching" push is the default
[gitweb.git] / remote-testsvn.c
index 51fba059a242103fd13bb4b01c471662e205ec43..5ddf11cc61e22e39f28b3cbe0dbd1075c0881556 100644 (file)
@@ -90,10 +90,12 @@ static int parse_rev_note(const char *msg, struct rev_note *res)
                        if (end == value || i < 0 || i > UINT32_MAX)
                                return -1;
                        res->rev_nr = i;
+                       return 0;
                }
                msg += len + 1;
        }
-       return 0;
+       /* didn't find it */
+       return -1;
 }
 
 static int note2mark_cb(const unsigned char *object_sha1,