Issue #284: Changing current branch in web interface
|Created on:||2017-06-14 14:46|
|Updated on:||2017-06-28 20:35|
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.
Comment by Mads Kiilerich, on 2017-06-24 17:22
Comment by Mads Kiilerich, on 2017-06-24 17:26
Hmm ... ok, that kind of start revision. Slightly related to Issue #285.
Comment by Andrej Shadura, on 2017-06-24 19:35
Yes, @N0mAnor’s analysis is correct, changing the start revision should update HEAD. I think I can take this one.
Comment by Andrej Shadura, on 2017-06-24 19:37
Comment by Andrej Shadura, on 2017-06-28 20:35
Related: pull request #354