Commit 3e84aa506d8f3160aa8cda77f97e27a463c778b0

Patrick Steinhardt 2017-04-05T13:47:09

repository: get worktree HEAD via `git_reference__read_head` The functions `git_repository_head_for_worktree` and `git_repository_detached_head_for_worktree` both implement their own logic to read the HEAD reference file. Use the new function `git_reference__read_head` instead to unify the code paths.