An argument injection issue exists in the `Head.checkout()` function. Remote attackers can read arbitrary files by providing a branch name that is parsed as a git option. For instance, an attacker could host a repository with a default branch named `--pathspec-from-file=<path>`, which leads cloning applications to leak file contents via `GitCommandError` messages when checking out the active branch.