git: fix git-lazy-checkin to push

This commit is contained in:
2020-07-05 13:40:34 -07:00
parent 35870ea6aa
commit 1cd53056de

View File

@@ -15,7 +15,7 @@ def lazy_commit(all: bool = True, message: str = None):
call_proc(git_cmd_base + ["rev-parse", "--abbrev-ref", "HEAD@{upstream}"])
except subprocess.CalledProcessError:
print("Current branch has no upstream")
# exit(1)
exit(1)
call_proc(git_cmd_base + ["add", "-A" if all else "-u"])
if message is None:
@@ -25,7 +25,7 @@ def lazy_commit(all: bool = True, message: str = None):
print("Failed to describe changes, are there any staged changes?")
exit(1)
call_proc(["git", "commit", "-m", message])
# call_proc(["git", "push"])
call_proc(["git", "push"])
def main():