Rely on git-sync config flags to disable pre-commit hooks
This commit is contained in:
parent
9f2a576055
commit
2f0555d634
3 changed files with 3 additions and 15 deletions
|
|
@ -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 "$@"
|
||||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue