Re: [PATCH 2/2] Teach 'git remote' how to cleanup stale tracking branches.

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 2/2] Teach 'git remote' how to cleanup stale tracking branches.

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:52

If you are disconnected, would it fail gracefully without
removing stuff?  From a cursory look it should, but just making
sure.

Re: [PATCH 2/2] Teach 'git remote' how to cleanup stale tracking branches.

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:42:52

Junio C Hamano [off-list ref] wrote:
If you are disconnected, would it fail gracefully without
removing stuff?  From a cursory look it should, but just making
sure.
Indeed, it crashes out:
 
	$ ./git-remote prune cs-src
	ssh: host.that.exists: No address associated with nodename
	fatal: The remote end hung up unexpectedly
	ls-remote --heads cs:sw/src/git: command returned error: 1
	[git (sp/remote)]$ ls .git/refs/remotes/cs-src/
	.       ..      master

and the refs are still safe.

-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help