make pack-objects a bit more resilient to repo corruption
[gitweb.git] / builtin / send-pack.c
index 6019eac9182e22f2d485acdb83be209dbc49968a..481602d8ae73612226bcc758f2aedea7f964779c 100644 (file)
@@ -361,6 +361,10 @@ int send_pack(struct send_pack_args *args,
 
        if (ret < 0)
                return ret;
+
+       if (args->porcelain)
+               return 0;
+
        for (ref = remote_refs; ref; ref = ref->next) {
                switch (ref->status) {
                case REF_STATUS_NONE: