Tweak git-sync behaviour in .gitconfig instead of the CLI
This commit is contained in:
parent
d83ce3ab34
commit
0dbd277c2f
2 changed files with 5 additions and 1 deletions
|
|
@ -10,6 +10,10 @@
|
||||||
[remote]
|
[remote]
|
||||||
pushDefault = .
|
pushDefault = .
|
||||||
[git-sync]
|
[git-sync]
|
||||||
|
# keep-sorted start
|
||||||
|
syncEnabled = true
|
||||||
|
syncNewFiles = true
|
||||||
syncSkipHooks = true
|
syncSkipHooks = true
|
||||||
|
# keep-sorted end
|
||||||
[include]
|
[include]
|
||||||
path = .hostgitconfig
|
path = .hostgitconfig
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ sync_repo () {
|
||||||
repo=$1
|
repo=$1
|
||||||
|
|
||||||
echo git-sync "${repo}"
|
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
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue