Browse Source
When running from a non-bare repository, "jgit repo" checks whether the rev passed in is a sha1 or branch name and in the latter case will check out origin/<branch>. We are expecting refs/remotes/origin/<branch>, but as a side effect of using getRef we also end up looking for refs/origin/<branch>, refs/heads/origin/<branch>, and so on. Avoid that by using exactRef instead. Signed-off-by: Jonathan Nieder <jrn@google.com> Change-Id: I670b2e48a88138a1f2104ea201baa958e9edbddbstable-4.3
Jonathan Nieder
9 years ago
1 changed files with 4 additions and 1 deletions
Loading…
Reference in new issue