From 1cd53056de56241e377f015928439ef7b0a8bf24 Mon Sep 17 00:00:00 2001 From: Max Regan Date: Sun, 5 Jul 2020 13:40:34 -0700 Subject: [PATCH] git: fix git-lazy-checkin to push --- .mgr_config/bin/git-lazy-checkin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.mgr_config/bin/git-lazy-checkin b/.mgr_config/bin/git-lazy-checkin index e81c64e..7eebea7 100755 --- a/.mgr_config/bin/git-lazy-checkin +++ b/.mgr_config/bin/git-lazy-checkin @@ -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():