From de08b18bafc5534f3384b56d5eb20b497f7156a2 Mon Sep 17 00:00:00 2001 From: Trey Bastian Date: Tue, 28 Oct 2025 10:35:12 +0000 Subject: make it not run in the background --- post-receive | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/post-receive b/post-receive index 707bb96..7734455 100644 --- a/post-receive +++ b/post-receive @@ -18,15 +18,8 @@ if [ -z "$REPO_URL" ]; then exit 0 fi -sync_repo() { - git push --mirror "$REPO_URL" >> "$LOGFILE" 2>&1 -} - -# make sure the sync occurs in the background -nohup bash -c " - cd \"$REPO_PATH\" || exit 1 - git push --mirror \"$REPO_URL\" >> \"$LOGFILE\" 2>&1 -" > /dev/nul 2>&1 & +echo "syncing $REPO_PATH" >> "$LOGFILE" +git push --mirror "$REPO_URL" >> "$LOGFILE" 2>&1 # vim: filetype=sh -- cgit v1.2.3