diff --git a/.gitconfig b/.gitconfig index a57fb68..1aaaa5d 100644 --- a/.gitconfig +++ b/.gitconfig @@ -9,5 +9,7 @@ resign = !git-resign [remote] pushDefault = . +[git-sync] + syncSkipHooks = true [include] path = .hostgitconfig diff --git a/.local/bin/hookless-git-sync b/.local/bin/hookless-git-sync deleted file mode 100755 index c9f1f14..0000000 --- a/.local/bin/hookless-git-sync +++ /dev/null @@ -1,14 +0,0 @@ -#! /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 a1ab4bf..92d7258 100755 --- a/.local/bin/sync-git-repos +++ b/.local/bin/sync-git-repos @@ -12,7 +12,7 @@ sync_repo () { repo=$1 echo git-sync "${repo}" - ( cd "${repo}" && "$(systemd-path user-binaries)"/hookless-git-sync -n -s sync ) + ( cd "${repo}" && "$(systemd-path user-state-private)"/git-sync/git-sync -n -s sync ) echo }