#2670 Managed to hose virt-manager, virtinst, virt-viewer repos. Can they be wiped clean?
Closed: Fixed None Opened 13 years ago by crobinso.

nb recently created a few git repos for me (thanks!), however the conversion from mercurial didn't go so swimmingly and I pushed some bogus data to the repos (commit dates were messed up)

After a bugfix in hg2git.py I've got things looking pretty good locally, but fedorahosted isn't letting me overwrite/delete the master branch on the git repo.

$ git push --force ssh://git.fedorahosted.org/git/virt-manager.git
Total 0 (delta 0), reused 0 (delta 0)
remote: error: denying non-fast-forward refs/heads/master (you should pull first)
To ssh://git.fedorahosted.org/git/virt-manager.git
! [remote rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'ssh://git.fedorahosted.org/git/virt-manager.gi

$ git push --force ssh://git.fedorahosted.org/git/virt-manager.git :master
remote: error: By default, deleting the current branch is denied, because the next
remote: error: 'git clone' won't result in any file checked out, causing confusion.
remote: error:
remote: error: You can set 'receive.denyDeleteCurrent' configuration variable to
remote: error: 'warn' or 'ignore' in the remote repository to allow deleting the
remote: error: current branch, with or without a warning message.
remote: error:
remote: error: To squelch this message, you can set it to 'refuse'.
remote: error: refusing to delete the current branch: refs/heads/master
To ssh://git.fedorahosted.org/git/virt-manager.git
! [remote rejected] master (deletion of the current branch prohibited)
error: failed to push some refs to 'ssh://git.fedorahosted.org/git/virt-manager.git'

I assume this is intentional to prevent people from shooting themselves in foot. So is there something that can be done on the hosted side to just delete the current repos and recreate as fresh? (No worries about losing any data, nothing of value has been pushed to these repos yet)

Thanks!


I've deleted the broken repository and created a new one. There is no gitvirt-manager FAS group to assign it to so:

[averi@hosted1 git]$ ls -a -l | grep virt-manager.git
drwxrwsr-x 7 crobinso crobinso 4096 Mar 14 20:32 virt-manager.git

Let me know if you want it to be changed or if you want a FAS group to be created for it.

thanks,

Now found the correct group:

[averi@hosted1 git]$ ls -a -l | grep virt-

drwxrwsr-x 7 crobinso hgvirt-manager 4096 Mar 14 20:43 virt-manager.git
drwxrwsr-x 7 crobinso hgvirt-viewer 4096 Mar 14 20:46 virt-viewer.git

everything should be ready to go now, feel free to follow-up this this ticket if you aren't able to push.

Andrea

Login to comment on this ticket.

Metadata