diff options
| author | Trey Bastian <hello@treybastian.com> | 2025-10-28 10:35:12 +0000 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2025-10-28 10:35:12 +0000 |
| commit | de08b18bafc5534f3384b56d5eb20b497f7156a2 (patch) | |
| tree | 261eee1164ee4d05ea1a4e2f4e02293182aacd48 /post-receive | |
| parent | ed67aeee52591ff94433dfcbdf97fdb0a8932c36 (diff) | |
make it not run in the background
Diffstat (limited to 'post-receive')
| -rw-r--r-- | post-receive | 11 |
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 |
