diff --git a/remote-testsvn.c b/remote-testsvn.c index 51fba059a24210..5ddf11cc61e22e 100644 --- a/remote-testsvn.c +++ b/remote-testsvn.c @@ -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,