From ed67aeee52591ff94433dfcbdf97fdb0a8932c36 Mon Sep 17 00:00:00 2001 From: Trey Bastian Date: Tue, 28 Oct 2025 10:31:05 +0000 Subject: fixed escaping vars --- post-receive | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'post-receive') diff --git a/post-receive b/post-receive index 28db0c5..707bb96 100644 --- a/post-receive +++ b/post-receive @@ -23,7 +23,10 @@ sync_repo() { } # make sure the sync occurs in the background -nohub bash -c " it push --mirror "$REPO_URL" >> "$LOGFILE" 2>&1" > /dev/nul 2>&1 & +nohup bash -c " + cd \"$REPO_PATH\" || exit 1 + git push --mirror \"$REPO_URL\" >> \"$LOGFILE\" 2>&1 +" > /dev/nul 2>&1 & # vim: filetype=sh -- cgit v1.2.3