Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Gitlab
Gitlab
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 29
    • Issues 29
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • The Tor Project
  • TPA
  • GitlabGitlab
  • Issues
  • #38

Closed
Open
Opened Jun 23, 2020 by Matthew Finkel@sysrqb

Protected Branches are problematic for mirroring

CC: @ahf @gk

With #9 (closed) we got cloning/mirroring between gitolite and gitlab. Ignoring #36 for now, it seems we have a problem with using protected branches. Specifically, we configured protected branches for '*' and disable merging via the web interface, and 'Maintainers' are allowed push access. This seemed like it was close enough to what we wanted, however we now have another problem.

remote: remote: GitLab: You can only delete protected branches using the web interface.        
remote: To dip.torproject.org:tpo/applications/tor-browser-build
remote:  ! [remote rejected] 20254-update-marsigning-check-sh-to-cope-with-signed-os-x-mar-files (pre-receive hook declined)
remote:  ! [remote rejected] maint-9.5 -> maint-9.5 (pre-receive hook declined)
remote:  ! [remote rejected] refs/merge-requests/2/head (pre-receive hook declined)
remote:  ! [remote rejected] refs/merge-requests/3/head (pre-receive hook declined)
remote:  ! [remote rejected] refs/merge-requests/3/merge (pre-receive hook declined)

Specifically, the description of Protected Branches includes:

  • prevent anyone from deleting the branch
  • prevent anyone from force pushing to the branch

I guess we need a different approach.

Edited Sep 28, 2020 by anarcat
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: tpo/tpa/gitlab#38