mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #31903 from terminalmage/fix-git-pillar
Use remote_ref instead of local_ref to see if checkout is necessary
This commit is contained in:
commit
142c47c50d
1 changed files with 1 additions and 1 deletions
|
@ -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 '
|
||||
|
|
Loading…
Add table
Reference in a new issue