From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Mon, 16 Sep 2013 20:04:50 +0100 Subject: HEAD tag when branch viewed In-Reply-To: References: Message-ID: <20130916190450.GA2644@serenity.lan> On Mon, Sep 16, 2013 at 06:35:43PM +0000, Smith, Eric wrote: > Is this the right place to ask a cgit question? Yes :-) > Shouldn't the red "HEAD" indicator reflect the selected branch? > > Using cgit v0.9.2 the Summary display of the 'master' branch correctly > displays the red "HEAD" indicator next to the green "master" > indicator. > > But when I use the 'switch' dropdown to display the 'develop' branch > the red "HEAD" indicator remains where it was, even though the green > "develop" indicator is now (correctly) displayed on a different > commit. > > The 'git show-ref' does have different commit shas for > refs/head/develop and refs/head/master. The HEAD indicator is showing where the HEAD symref on the server points. By default this is refs/heads/master. You don't normally see a remote's HEAD ref although it does affect the default branch checked out by "git clone", but you will see it if you use "git ls-remote".