Esempio n. 1
0
	def gitPushProject(self, localPath, backupPath):
		managerLocal = CavanGitManager(localPath, self.mVerbose)
		managerBackup = CavanGitManager(backupPath, self.mVerbose, bare = True)
		for index in range(2):
			if not managerBackup.genGitRepo():
				return False

			if managerLocal.doPush([backupPath]):
				return True

			self.prRedInfo("Remove git repo ", backupPath)
			managerBackup.removeSelf();

		return False