Change default anti-censorship branches on git.torproject.org
I've been working on tpo/anti-censorship/team#6 (closed) and have now managed to make all of the changes that I have permissions to make. What remains are to 1) push new branches to the git.torproject.org repositories I don't have write access to, and 2) make main the default branch when cloning from git.torproject.org
For the first item, I don't have and would like write access to the following repositories:
For the second item, I'm not sure how to accomplish this. This was the output from your script that I ran:
INFO: SSH remote detected, trying to fix default branch with: ('ssh', 'git@git-rw.torproject.org', 'git symbolic-ref HEAD main')
bad command: git symbolic-ref HEAD main
WARNING: failed to change HEAD on remote with SSH
INFO: trying to delete old branch master from remote
remote: warning: deleting the current branch
remote: + refs/heads/master admin/services/gettor cohosh DENIED by fallthru
remote: error: hook declined to update refs/heads/master
To git-rw.torproject.org:admin/services/gettor.git
! [remote rejected] master (hook declined)
error: failed to push some refs to 'git-rw.torproject.org:admin/services/gettor.git'
So I think it's the WARNING: failed to change HEAD on remote with SSH
that failed? If possible I would like to avoid deleting the master branch, and just make it so that when a user clones the repo, the main branch is checked out by default. Is it possible?