Re: efficient cloning
- From
Junio C Hamano <junkio@cox.net>
- Date
- Mar 20, 2006, 23:07 UTC
- Message-ID
- <7vk6aoiulj.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060320224123.GP18185@pasky.or.cz>
Petr Baudis <pasky@suse.cz> writes:
Show 5 quoted lines
> Then you can make a simple change that if a refname matches a directory > in refs/remotes/, you rewrite it as refs/remotes/<refname>/master. This > makes 'origin' work seamlessly in a natural way and a lot more elegantly > than if you make up an artifical rule like "if the remote's branch is > master, save it as origin, but save all the other branches verbatim".
The "origin" rename applies only to the traditional one. Separate remote stuff stores master in remotes/master.
At least that is the way I remember I designed it to work.