From c97b48bc0deaae92408de778ee6d0d9a8c73e63c Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Wed, 24 Jul 2024 14:23:45 -0300 Subject: [PATCH] Continue script execution when "git checkout" fails --- libexec/sourcezap/commands/sourcezap-clone | 2 +- share/sourcezap/RELNOTES | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libexec/sourcezap/commands/sourcezap-clone b/libexec/sourcezap/commands/sourcezap-clone index 1081d27..fa7e371 100755 --- a/libexec/sourcezap/commands/sourcezap-clone +++ b/libexec/sourcezap/commands/sourcezap-clone @@ -34,5 +34,5 @@ fi "${git}" clone "${giturl}" "${gitdir}" cd "${gitdir}" "${git}" config core.filemode off -"${git}" checkout -t origin/"${branch}" +"${git}" checkout -t origin/"${branch}" || true printok "clone complete" diff --git a/share/sourcezap/RELNOTES b/share/sourcezap/RELNOTES index cc3e413..e79b840 100644 --- a/share/sourcezap/RELNOTES +++ b/share/sourcezap/RELNOTES @@ -1,3 +1,10 @@ +v?.?.? + +| Recover from "git checkout" failure +After this change, "git checkout" exiting unsuccessfully +towards the end of "sourcezap clone" no longer causes +sourcezap to exit as well + v0.2.1 | Fix Makefile