From 61df681f329d7b884dd2ccb440e80ccfefbad46a Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 23 May 2024 03:10:41 -0300 Subject: [PATCH] Ignore 'git checkout' failure within portzap-clone --- libexec/portzap/commands/portzap-clone | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/portzap/commands/portzap-clone b/libexec/portzap/commands/portzap-clone index b853359..2715121 100755 --- a/libexec/portzap/commands/portzap-clone +++ b/libexec/portzap/commands/portzap-clone @@ -46,5 +46,6 @@ gitexec "clone ${giturl} ${gitdir}" cd "${gitdir}" gitexec "config core.filemode off" set +x -gitexec "checkout -t origin/${branch}" +set +e +gitexec "checkout -t origin/${branch} > /dev/null 2>&1" printok "clone complete"