aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrey Bastian <hello@treybastian.com>2025-10-28 10:35:12 +0000
committerTrey Bastian <hello@treybastian.com>2025-10-28 10:35:12 +0000
commitde08b18bafc5534f3384b56d5eb20b497f7156a2 (patch)
tree261eee1164ee4d05ea1a4e2f4e02293182aacd48
parented67aeee52591ff94433dfcbdf97fdb0a8932c36 (diff)
make it not run in the background
-rw-r--r--post-receive11
1 files 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