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
|
|
@ -9,5 +9,7 @@
|
||||||
resign = !git-resign
|
resign = !git-resign
|
||||||
[remote]
|
[remote]
|
||||||
pushDefault = .
|
pushDefault = .
|
||||||
|
[git-sync]
|
||||||
|
syncSkipHooks = true
|
||||||
[include]
|
[include]
|
||||||
path = .hostgitconfig
|
path = .hostgitconfig
|
||||||
|
|
|
||||||
|
|
@ -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
|
repo=$1
|
||||||
|
|
||||||
echo git-sync "${repo}"
|
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
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue