From d5770bc7316a57d6cccba41d0654e7c31d587af7 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 19 Jul 2024 02:44:03 -0300 Subject: [PATCH] Update sourcezap-{clone,pull} Reduce the visual noise generated by set -x --- libexec/sourcezap/commands/sourcezap-clone | 2 -- libexec/sourcezap/commands/sourcezap-pull | 2 -- 2 files changed, 4 deletions(-) diff --git a/libexec/sourcezap/commands/sourcezap-clone b/libexec/sourcezap/commands/sourcezap-clone index 31dfaf8..6d78986 100755 --- a/libexec/sourcezap/commands/sourcezap-clone +++ b/libexec/sourcezap/commands/sourcezap-clone @@ -43,10 +43,8 @@ if [ -e "${gitdir}/.git" ]; then exit 1 fi -set -x git clone "${giturl}" "${gitdir}" cd "${gitdir}" git config core.filemode off git checkout -t origin/"${branch}" -set +x printok "clone complete" diff --git a/libexec/sourcezap/commands/sourcezap-pull b/libexec/sourcezap/commands/sourcezap-pull index e40b731..7171caf 100755 --- a/libexec/sourcezap/commands/sourcezap-pull +++ b/libexec/sourcezap/commands/sourcezap-pull @@ -42,9 +42,7 @@ if [ ! -e "${gitdir}/.git" ]; then exit 1 fi -set -x cd "${gitdir}" branch=$(git branch --show-current) git pull --rebase origin "${branch}" -set +x printok "pull complete"