in pantri/scripts/lib/pantri.py [0:0]
def nothing_to_retrieve(self):
# Verify git config options are set and the auth token exists
self.configure()
try:
git_pull = git.cmd.Git(self.paths["repo_root"]).pull()
except git.exc.GitCommandError as e:
self.logger.error(
"Git pull failed. Please be on master"
f" or set your upstream to master: {e}."
)
raise
# perform a retrieve if the force flag is passed or retrieve a single pitem
if "force" in self.options or "pitem" in self.options:
return False
if re.match("^Already up-to-date.$", git_pull):
return True
return False