Rely on git-sync config flags to disable pre-commit hooks

This commit is contained in:
Ohad Livne 2025-06-14 22:25:11 +03:00
parent 9f2a576055
commit 2f0555d634
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
3 changed files with 3 additions and 15 deletions

View file

@ -9,5 +9,7 @@
resign = !git-resign
[remote]
pushDefault = .
[git-sync]
syncSkipHooks = true
[include]
path = .hostgitconfig

View file

@ -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 "$@"

View file

@ -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
}