Skip pre-commit hooks in the git-sync cron job

This commit is contained in:
Ohad Livne 2025-06-04 22:47:37 +03:00
parent a86f247bea
commit 11ab7e5afb
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
2 changed files with 15 additions and 1 deletions

14
.local/bin/hookless-git-sync Executable file
View file

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