Re: [PATCH 2/2] Teach 'git remote' how to cleanup stale tracking branches.
Junio C Hamano <junkio@cox.net> 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.