From: Lady Date: Fri, 15 Dec 2023 03:15:14 +0000 (-0500) Subject: Fail on git clone error X-Git-Tag: 0.2.0 X-Git-Url: https://git.ladys.computer/x_status_git/commitdiff_plain/a5da9db50960213ba706932818b2f4fc7c347cde?ds=sidebyside Fail on git clone error --- diff --git a/post-receive b/post-receive index f631236..17a8d22 100755 --- a/post-receive +++ b/post-receive @@ -27,7 +27,10 @@ if stdin.read().split()[-1] == f"refs/heads/{LIVE_BRANCH}": # Set up the build directory. if exists(BUILD_DIRECTORY): rmtree(BUILD_DIRECTORY) - run(["git", "clone", "--local", "--branch", "live", GIT_DIRECTORY, BUILD_DIRECTORY], capture_output=True, encoding="utf-8") + cloneresult = run(["git", "clone", "--local", "--branch", LIVE_BRANCH, GIT_DIRECTORY, BUILD_DIRECTORY], capture_output=True, encoding="utf-8") + # if cloneresult.stderr: + # print(cloneresult.stderr) + cloneresult.check_returncode() # Set up various containers. months = {}