]> Lady’s Gitweb - x_status_git/commitdiff
Fail on git clone error 0.2.0
authorLady <redacted>
Fri, 15 Dec 2023 03:15:14 +0000 (22:15 -0500)
committerLady <redacted>
Sat, 16 Dec 2023 01:50:30 +0000 (20:50 -0500)
post-receive

index f631236cb2a082a47ede606555eb020797c88275..17a8d227d298970e66e597183367cd5e0d4ba0e5 100755 (executable)
@@ -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 = {}
This page took 0.042374 seconds and 4 git commands to generate.