repository: set error message if trying to set HEAD to a checked out one
If trying to set the HEAD of a repository to another reference, we have to check whether this reference is already checked out in another linked work tree. If it is, we will refuse setting the HEAD and return an error, but do not set a meaningful error message. Add one.
Showing
Please
register
or
sign in
to comment