git-sync

Tool for periodic syncing of git repositories
git clone https://git.sinitax.com/sinitax/git-sync
Log | Files | Refs | sfeed.txt

commit a9cdf326c3361e1a50efff2b9b7a990fa239e77b
parent 412657861ed6d6558a4dcbd7373e0426566053cf
Author: Louis Burda <contact@sinitax.com>
Date:   Thu, 17 Apr 2025 22:04:54 +0200

Add install target and dont force sync

Diffstat:
AMakefile | 10++++++++++
Mgit-syncd | 2+-
2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,10 @@ +PREFIX ?= /usr/local +BINDIR ?= /bin + +.PHONY: all install + +all: + +install: + install -m 755 git-sync -t "$(DESTDIR)$(PREFIX)$(BINDIR)" + install -m 755 git-syncd -t "$(DESTDIR)$(PREFIX)$(BINDIR)" diff --git a/git-syncd b/git-syncd @@ -16,7 +16,7 @@ declare -A git_syncd_sync_delay sync() { echo "starting sync.." - cd "$repo" && git-sync + cd "$repo" && git-sync -n -s } watcher() {