transport-helper.c: do not overwrite forced bit
[gitweb.git] / transport-helper.c
index abe4c3c2c2ae29488d0d6f0a46424409f14a39cf..705dce7e049af441f706ea56b8c5ca82bf2b5482 100644 (file)
@@ -727,7 +727,7 @@ static int push_update_ref_status(struct strbuf *buf,
        }
 
        (*ref)->status = status;
-       (*ref)->forced_update = forced;
+       (*ref)->forced_update |= forced;
        (*ref)->remote_status = msg;
        return !(status == REF_STATUS_OK);
 }