From: Lady Date: Fri, 15 Dec 2023 03:15:14 +0000 (-0500) Subject: Fail on git clone error X-Git-Tag: 0.2.0^0 X-Git-Url: https://git.ladys.computer/x_status_git/commitdiff_plain/354494746f4759e04043cd1fd53ef40777065186?ds=sidebyside;hp=b07270ecbc9ca480c69b7085cf445a0358e22df4 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 = {}