Re: [PATCH] check_and_freshen_file: fix reversed success-check

2015-07-13 Thread X H
Le 13/07/2015 5:52, Jeff King a écrit : On Sun, Jul 12, 2015 at 12:21:33AM +0200, X H wrote: How are the permission handled, is it git that is asking to create a file read only or rw on the remote or is it the environment with umask ans so on that decides it, or Windows when the drive is

Re: [PATCH] check_and_freshen_file: fix reversed success-check

2015-07-11 Thread X H
Le 10/07/2015 0:48, Jeff King a écrit : On Thu, Jul 09, 2015 at 10:51:50PM +0200, Johannes Sixt wrote: Ah! That code is less than a year old. When I began to adopt a workflow requiring force-pushes lately, I wondered why I haven't seen these failures earlier, because I did do force pushes in th

Re: Git force push fails after a rejected push (unpack failed)?

2015-07-08 Thread X H
Le 8/07/2015 20:05, Jeff King a écrit : On Wed, Jul 08, 2015 at 07:41:48PM +0200, Johannes Sixt wrote: Yes, but remember that git stores all of the objects for all of the commits. So for some reason your push is perhaps trying to send an object that the other side already has. Usually this does

Git force push fails after a rejected push (unpack failed)?

2015-07-07 Thread X H
Hi, I have a remote repository on a network share configured as a file remote. I have pushed the HEAD of a branch to the remote, then amend the local HEAD. I then try to push the HEAD again but it was rejected. I made multiple attempts and then try to force the push with: $ git push -f origin br