[Pkg-cgit-devel] Bug#881831: dgit-infrastructure: doesn't show anything on cgit when the only digt push hit only experimental
Ian Jackson
ijackson at chiark.greenend.org.uk
Wed Nov 15 16:43:45 UTC 2017
reassign -1 cgit
retitle -1 Please display refs that do exist even if HEAD is missing
thanks
Hi, cgit maintainers. I have a request for a behavioural change:
Mattia Rizzolo writes ("Bug#881831: dgit-infrastructure: doesn't show anything on cgit when the only digt push hit only experimental"):
> Package: dgit-infrastructure
>
> https://browse.dgit.debian.org/chicken.git/ currently shows an empty
> repository, because the only upload done through dgit only hit
> experimental.
>
> <Diziet> I think cgit has some thing where it won't display anything if there is no HEAD
> <Diziet> And the repos' HEAD is master by default
> <Diziet> The server updates master automatically if you upload to sid, but not when you upload to experimental
> <mapreri> right, I haven't yet uploaded to unstable (which I will soonish anyway), but I expected cgit it to show me exp now anyway
> <Diziet> I agree that it ought to.
The repository in question is in the following state:
iwj at gideon:/srv/dgit.debian.org/repos/chicken.git$ git for-each-ref --format='%(refname)'
refs/dgit/experimental
refs/tags/archive/debian/4.12.0-0.2
refs/tags/debian/4.12.0-0.2
iwj at gideon:/srv/dgit.debian.org/repos/chicken.git$ git symbolic-ref HEAD
refs/heads/master
iwj at gideon:/srv/dgit.debian.org/repos/chicken.git$ git rev-parse HEAD
HEAD
iwj at gideon:/srv/dgit.debian.org/repos/chicken.git$
cgit just displays "Repository seems to be empty", even at
https://browse.dgit.debian.org/chicken.git/refs/
even though there are several refs, as you can see. (NB that cgit is
running on an rsync mirror of the repo, but I don't think that is
relevant.)
Compare
iwj at gideon:/srv/dgit.debian.org/repos/dgit.git$ git for-each-ref --format='%(refname)' | grep -v refs/tags
refs/dgit/experimental
refs/dgit/jessie-backports
refs/dgit/sid
refs/dgit/stretch
refs/heads/master
iwj at gideon:/srv/dgit.debian.org/repos/dgit.git$ git symbolic-ref HEAD
refs/heads/master
iwj at gideon:/srv/dgit.debian.org/repos/dgit.git$ git rev-parse HEAD
b363aeb4b0228eff6ad85229946feeb3b4d92b77
iwj at gideon:/srv/dgit.debian.org/repos/dgit.git$
And see
https://browse.dgit.debian.org/dgit.git/
I think that this HEAD-less state is appropriate for Mattia's repo.
It would be better if cgit displayed its contents.
Regards,
Ian.
--
Ian Jackson <ijackson at chiark.greenend.org.uk> These opinions are my own.
If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.
More information about the Pkg-cgit-devel
mailing list