Add a case for pulling from non-initialized repositories

This commit is contained in:
Alexander van Gessel 2012-05-20 22:05:42 +01:00
parent e0e55682c0
commit ef19b2586a

View file

@ -111,6 +111,9 @@ class Addon(object):
else:
logging.error("Untracked files blocking pull of {0}. Please remove.".format(self.name))
return False
elif err.find("Your configuration specifies to merge with the ref 'master'") != -1:
logging.info("Pulled from still-empty (not initialized) repository {0}.".format(self.name))
return False
else:
logging.error("Unknown pull result in add-on {0}:\nOut: {1}\nErr: {2}".format(self.name, out, err))
return False