Giuseppe Bilotta <giuseppe.bilotta@xxxxxxxxx> writes: > diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl > index 4f7b7da..2c8a665 100755 > --- a/gitweb/gitweb.perl > +++ b/gitweb/gitweb.perl > @@ -1690,7 +1690,7 @@ sub git_get_references { > my %refs; > if (git_is_head_detached()) { > my $hash = git_get_head_hash($project); > - $refs{$hash} = [ 'HEAD' ]; > + $refs{$hash} = [ 'detached/HEAD' ]; > } > # 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c refs/tags/v2.6.11 > # c39ae07f393806ccf406ef966e9a15afc43cc36a refs/tags/v2.6.11^{} Is this correct? IOW is $refs{$hash} only used to give descriptive name given a 40-hexadecimal object name, and there is no requirement that you can give the descriptive name to rev-parse and get the object name back? - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html