Use remote_ref instead of local_ref to see if checkout is necessary

This commit is contained in:
Erik Johnson 2016-03-15 13:27:19 -05:00
parent 1be9c91761
commit af29940e1c

View file

@ -948,7 +948,7 @@ class Pygit2(GitProvider):
try:
target_sha = \
self.repo.lookup_reference(local_ref).get_object().hex
self.repo.lookup_reference(remote_ref).get_object().hex
except KeyError:
log.error(
'pygit2 was unable to get SHA for %s in %s remote '