Re: [PATCH] Update the tracking references only if they were succesfully updated on remote

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Tuesday, November 13, 2007 - 12:52 am

On Mon, Nov 12, 2007 at 10:39:38PM +0100, Alex Riesen wrote:


Yes, some of the error information placed in 'ret' was getting lost.
Daniel and I discussed some fixes, but haven't done a final patch yet.
Your patch doesn't work because the assumption that
is_null_sha1(refs->new_sha1) signals error is not correct. This is also
the case for deleted refs, which means that we are failing to update
tracking branches for successfully deleted refs.

I'd like to have a patch that accurately tracks per-ref errors,
including ones from the remote. That not only will give us more accurate
status reporting, but fixes like this will be much easier. Let me see if
I can put something together.

-Peff
-
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Update the tracking references only if they we ..., Jeff King, (Tue Nov 13, 12:52 am)
[PATCH] Add a test for deleting remote branches, Alex Riesen, (Tue Nov 13, 12:49 pm)
[PATCH] Improved and extended t5404, Alex Riesen, (Tue Nov 13, 4:02 pm)
Re: [PATCH] Improved and extended t5404, Jeff King, (Tue Nov 13, 4:10 pm)
Re: [PATCH] Improved and extended t5404, Junio C Hamano, (Tue Nov 13, 5:02 pm)
Re: [PATCH] Improved and extended t5404, Alex Riesen, (Wed Nov 14, 12:19 am)
Re: [PATCH] Improved and extended t5404, Junio C Hamano, (Wed Nov 14, 1:47 am)
Re: [PATCH] Improved and extended t5404, Johannes Schindelin, (Wed Nov 14, 10:10 am)
Re: [PATCH] Improved and extended t5404, Alex Riesen, (Wed Nov 14, 12:45 pm)
Re: [PATCH] Improved and extended t5404, Alex Riesen, (Wed Nov 14, 1:34 pm)
Re: [PATCH] Improved and extended t5404, Junio C Hamano, (Wed Nov 14, 2:52 pm)
Re: [PATCH] Improved and extended t5404, Junio C Hamano, (Wed Nov 14, 2:52 pm)
Re: [PATCH] Improved and extended t5404, Johannes Schindelin, (Wed Nov 14, 3:01 pm)
Re: [PATCH] Improved and extended t5404, Jeff King, (Wed Nov 14, 9:18 pm)
Re: [PATCH] Improved and extended t5404, Jeff King, (Wed Nov 14, 9:26 pm)
Re: [PATCH] Improved and extended t5404, Jeff King, (Wed Nov 14, 9:35 pm)
Re: [PATCH] Improved and extended t5404, Junio C Hamano, (Wed Nov 14, 10:55 pm)