Tweak git-sync behaviour in .gitconfig instead of the CLI

This commit is contained in:
Ohad Livne 2025-06-25 19:34:14 +03:00
parent d83ce3ab34
commit 0dbd277c2f
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
2 changed files with 5 additions and 1 deletions

View file

@ -10,6 +10,10 @@
[remote]
pushDefault = .
[git-sync]
# keep-sorted start
syncEnabled = true
syncNewFiles = true
syncSkipHooks = true
# keep-sorted end
[include]
path = .hostgitconfig

View file

@ -12,7 +12,7 @@ sync_repo () {
repo=$1
echo git-sync "${repo}"
( cd "${repo}" && "$(systemd-path user-state-private)"/git-sync/git-sync -n -s sync )
( cd "${repo}" && "$(systemd-path user-state-private)"/git-sync/git-sync sync )
echo
}