Re: [PATCH] Disable USE_SYMLINK_HEAD by default
From: Pavel Roskin <hidden>
Date: 2016-06-15 22:42:12
On Tue, 2005-11-15 at 09:05 -0800, Junio C Hamano wrote:
Petr Baudis [off-list ref] writes:quoted
Yes, I would very much like to have this. I still want to go symrefs-only for public repositories created for cg-admin-setuprepo, so that fetching over HTTP works properly.Sorry, I must have missed that part. How does fetch-over-HTTP break with symlinked HEAD?
With symlinks, cogito doesn't know which branch it is fetching if the branch is not explicitly specified. The old behavior was to fetch the "master" branch by default. Currently, cogito uses HEAD, but it cannot read the symlink, it can only read the SHA1. So, if somebody decides to use "cg-switch" on the public repository (admittedly not a very good idea), all the clients that are not using an explicit branch will unknowingly switch to another branch upon update. It also could be useful for users to know the branch name. I, for one, would like to know if HEAD links to "stable" or "sandbox4crazyhacks", even if both have the same SHA1 at the moment. -- Regards, Pavel Roskin