diff options
Diffstat (limited to 'src/remote.c')
-rw-r--r-- | src/remote.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/remote.c b/src/remote.c index 307306d1a..d46364a81 100644 --- a/src/remote.c +++ b/src/remote.c @@ -1348,9 +1348,11 @@ static int rename_fetch_refspecs( if (!remote->name || strcmp(git_buf_cstr(&base), spec->string)) { - error = GITERR_CALLBACK( callback(spec->string, payload) ); - if (error) + if ((error = callback(spec->string, payload)) != 0) { + GITERR_CALLBACK(error); break; + } + continue; } |