On 05/06/2011 11:02 AM, Gary V. Vaughan wrote:
> On Fri, May 06, 2011 at 09:07:22AM -0700, Bruce Korb wrote:
>> I have forgotten why GIT tends to hang up without telling you why:
>>
>>> $ git push
>>> fatal: The remote end hung up unexpectedly
>>
>> so I haven't pushed the 180 commit merge.....
> 
> If memory serves that happens when you make a read-only checkout,
> i.e. with a git:// url or otherwise without using your savannah
> account name over ssh://, and then try to push a change back.
> 
> There is same magic to tell git that the origin has moved to a
> new (i.e. ssh://) url if you are prepared to backup, google a bit,
> experiment a little, and swear a lot...

git remote set-url --push origin [email protected]/srv/git/gnulib.git

Or hand-edit .git/config for the same effect.

> 
> Whenever I've done that I always `git format-patch` from the read-
> only tree, checkout out a fresh working copy, and then apply the
> stack of patches from the broken checkout.

Yeah, that works too :)

-- 
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to