Complement c6aa27e (Move WebDAV HTTP push under remote-curl, Wed Oct 14) by adding error reports for 'cannot remove' (failed to delete branch) and 'no match'. Signed-off-by: Tay Ray Chuan <rctay89@xxxxxxxxx> --- http-push.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/http-push.c b/http-push.c index b97ea1f..f10803a 100644 --- a/http-push.c +++ b/http-push.c @@ -1916,9 +1916,12 @@ int main(int argc, char **argv) /* Remove a remote branch if -d or -D was specified */ if (delete_branch) { - if (delete_remote_branch(refspec[0], force_delete) == -1) + if (delete_remote_branch(refspec[0], force_delete) == -1) { fprintf(stderr, "Unable to delete remote branch %s\n", refspec[0]); + if (helper_status) + printf("error %s cannot remove\n", refspec[0]); + } goto cleanup; } @@ -1930,6 +1933,8 @@ int main(int argc, char **argv) } if (!remote_refs) { fprintf(stderr, "No refs in common and none specified; doing nothing.\n"); + if (helper_status) + printf("error null no match\n"); rc = 0; goto cleanup; } -- 1.6.4.4 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html