Learn more about these different git repos.
Other Git URLs
I'm trying to find the default branch in a repo. This should be doable with git ls-remote --symref. However it does not seem to work on pagure:
git ls-remote --symref
$ git ls-remote --symref https://pagure.io/pagure.git HEAD 6d4e7256bb914af0a0e654a6f46f8d8e907b555d HEAD
Running this against github or gitlab repo does following:
$ git ls-remote --symref https://github.com/pypingou/pagure.git HEAD ref: refs/heads/master HEAD 9a44c56074458e6d9ab66cf11ffe303fef7612f6 HEAD $ git ls-remote --symref https://gitlab.gnome.org/GNOME/gnome-shell.git HEAD ref: refs/heads/master HEAD 4a3c610d7065b29399b9df4ddd926aa6cfc52773 HEAD
This is interesting, but I have no idea what's missing to make it work.
Do you?
Unfortunately I have no clue either. When I run Pagure locally via Docker, trying this against local repo (either with file:///… url or with git://) does work correctly for newly created repo as well as after changing the default branch.
file:///…
git://
I think that git on the server is too old and does not support this feature. I think there's 1.8.3 installed, but this was only added in 1.8.5.
I think there's 1.8.3 installed
Confirmed.
Thanks for tracking down the addition of this feature!
What should we do about this ticket then? Can you see the expected behavior on your local machine? (I do)
If so, I think we can close this ticket as invalid, there is nothing for us to do (outside of upgrading the server/git package)
I agree there's nothing to do here, except waiting for updated git. However who knows when that will happen...
Metadata Update from @lsedlar: - Issue close_status updated to: Invalid - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.