Issue #284: Changing current branch in web interface
Reported by: | André |
State: | new |
Created on: | 2017-06-14 14:46 |
Updated on: | 2017-06-28 20:35 |
Description
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.
Attachments
Comments
Comment by Mads Kiilerich, on 2017-06-24 17:22
What Kallithea version is this seen on?
@andrew_shadura can you comment on this? It seems related to your 2cf6d49b6073 (and b57baf83dc3d).
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