That's an odd combination of behavior: we update some of the refs, leave
the ones that didn't work alone, report success on the ones that worked,
but then we forget that some things worked?
If we're going to refuse to update local tracking refs, whose state
doesn't matter much, we should certainly refuse to update the remote refs,
which are probably public and extremely important. If we just pushed and
we fetch, we should see exclusively changes that somebody else (including
hooks remotely) did, not anything that we ourselves did.
I'd guess -2 is supposed to indicate that there were some errors but some
things may have worked. If pack_objects() or receive_status() fails, we
shouldn't update anything locally (because it won't have been accepted
remotely); otherwise, we should make local updates of every remote efect
we had, even if we end up returning non-zero to indicate that we didn't do
everything asked.
-Daniel
*This .sig left intentionally blank*
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html