everybody wants to change the world but noone wants to die
This commit is contained in:
parent
6d81539fc5
commit
e6905b1d0a
6 changed files with 181 additions and 83 deletions
|
@ -17,6 +17,9 @@ def is_remote_ahead(branch='main', remote='origin'):
|
|||
|
||||
# Automatically update the local repository if the remote is ahead
|
||||
def auto_update(branch='main', remote='origin'):
|
||||
if launched == True:
|
||||
print("I've already started! Im not updating...")
|
||||
return
|
||||
if AUTOUPDATE != "True":
|
||||
pass # Auto-update is disabled
|
||||
if is_remote_ahead(branch, remote):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue