aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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