diff --git a/.local/bin/hookless-git-sync b/.local/bin/hookless-git-sync new file mode 100755 index 0000000..c9f1f14 --- /dev/null +++ b/.local/bin/hookless-git-sync @@ -0,0 +1,14 @@ +#! /usr/bin/bash + +git () { + case "$1" in + commit) + shift + command git commit --no-verify "$@" + ;; + *) + command git "$@" + ;; + esac +} +. "$(systemd-path user-state-private)"/git-sync/git-sync "$@" diff --git a/.local/bin/sync-git-repos b/.local/bin/sync-git-repos index a30bf3c..f34f0ac 100755 --- a/.local/bin/sync-git-repos +++ b/.local/bin/sync-git-repos @@ -12,7 +12,7 @@ sync_repo () { repo=$1 echo git-sync -s "${repo}" - ( cd "${repo}" && "$(systemd-path user-state-private)"/git-sync/git-sync -s sync ) + ( cd "${repo}" && "$(systemd-path user-binaries)"/hookless-git-sync -s sync ) echo }