Merge branch 'jk/remote-helpers-doc'
[gitweb.git] / transport-helper.c
index 965b778cb3bb6fdd8068dbc7f9603cf9815c028d..cb3ef7d38e475480a5d81ce6077c4c87ea09a318 100644 (file)
@@ -666,6 +666,16 @@ static void push_update_ref_status(struct strbuf *buf,
                        free(msg);
                        msg = NULL;
                }
+               else if (!strcmp(msg, "fetch first")) {
+                       status = REF_STATUS_REJECT_FETCH_FIRST;
+                       free(msg);
+                       msg = NULL;
+               }
+               else if (!strcmp(msg, "needs force")) {
+                       status = REF_STATUS_REJECT_NEEDS_FORCE;
+                       free(msg);
+                       msg = NULL;
+               }
        }
 
        if (*ref)