#5061 Add support for setting symbolic refs in projects
Closed: Fixed 3 years ago by pingou. Opened 3 years ago by ngompa.

Per the discussion on devel@ on changing our Git repository default branch from master to main, it was asked that we implement support for configuring symbolic references in projects.

This should be configurable via the UI and API.

This should be able to be done with pygit2 using the Repository.create_reference() method.

For example, for renaming master to main while not breaking backwards compatibility:

repo.create_reference("refs/heads/master", "refs/heads/main")

For Dist-Git repositories, we'd do something like this for master to rawhide aliasing:

repo.create_reference("refs/heads/master", "refs/heads/rawhide")

Metadata Update from @ngompa:
- Issue tagged with: pagure.io

3 years ago

I'm a bit on the fence about this one. I wonder if we want pagure to support this (vs just have a script doing it server side once for all the project and be done with it)

I think we want this to be something projects can choose to set up, unless we want hardcoded ones...

Metadata Update from @pingou:
- Issue assigned to pingou

3 years ago

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #5062 Merged 3 years ago