Changing current branch in web interface

Issue #284 new
André created an issue

I tried to delete a remote branch and got the following error message:

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.

I thought changing the "Start Revision" would also change the current branch but grepping through the source code it seems that this is only stored in the database.

A change of the "Start Revision" setting should perform something like "git symbolic-ref HEAD refs/heads/$revision" in the bare repository.

Comments (5)

  1. Andrej Shadura

    Yes, @N0mAnor’s analysis is correct, changing the start revision should update HEAD. I think I can take this one.

  2. Log in to comment