]> git.proxmox.com Git - libgit2.git/commit
repository: restrict checking out checked out branches
authorPatrick Steinhardt <ps@pks.im>
Tue, 27 Oct 2015 13:17:52 +0000 (14:17 +0100)
committerPatrick Steinhardt <ps@pks.im>
Mon, 13 Feb 2017 10:06:52 +0000 (11:06 +0100)
commit384518d09dc16b8a7dae22069e0c612e4b65c5e8
treed7ca75438b77086f902a4f60abb0d578666984a3
parent143e539fd0e9b83c6a3a369d5baf508ccb51697b
repository: restrict checking out checked out branches

If a branch is already checked out in a working tree we are not
allowed to check out that branch in another repository. Introduce
this restriction when setting a repository's HEAD.
src/repository.c
tests/worktree/refs.c