Initial work to auto-commit updated caches
This commit is contained in:
		
					parent
					
						
							
								620694ab38
							
						
					
				
			
			
				commit
				
					
						d4d0209623
					
				
			
		
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -151,6 +151,16 @@ def update_packages(cache_file, repo_mapping_file):
 | 
			
		|||
    hash_data.save()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def commit_changes(cache_file):
 | 
			
		||||
 | 
			
		||||
    repo = git.Repo(Path.curdir())
 | 
			
		||||
    repo.index.add([cache_file])
 | 
			
		||||
    repo.index.commit("Update caches")
 | 
			
		||||
    origin = repo.remotes["origin"]
 | 
			
		||||
    origin.pull(rebase=True)
 | 
			
		||||
    origin.push()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def main():
 | 
			
		||||
 | 
			
		||||
    parser = argparse.ArgumentParser()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue