FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

After pushing huge commit into remote repo, "Sending mail..." message stuck · Issue #111 · git-commit-notifier/git-commit-notifier · GitHub

Repository navigation

After pushing huge commit into remote repo, "Sending mail..." message stuck #111

Open

Description

I have many files in my project. Thousands of files. When I doing first push of my project into remote repo and after project is pushed - "Sending mail..." message stucks. I don't want to wait while email will be sent to developers. Is there a option by which the process that sending mails would work in the background?

Activity

  1. akzhan commented on Nov 7, 2011

    Member

    There is no option for yet.

    I need to think about.

  2. ghost assigned on Nov 7, 2011
  3. dermoth commented on Apr 3, 2012

    What about something like this in the post-receive hook:

    tempfile=$(mktemp)
    cat >$tempfile
    git-commit-notifier "$git_notifier_config" <$tempfile &
    # $tempfile is already open by git-commit-notifier so it's safe to delete now
    rm -f $tempfile

    Obviously don't expect a message if something goes wrong, so you may want to redirect the command's stdout/stderr to some file too.

    And I haven't actually tested this, but if anything still hang on push you can try using setsid and redirecting outputs to some file or /dev/null, ex (notice there's no need for & with setsid):

    setsid git-commit-notifier "$git_notifier_config" <$tempfile >/dev/null 2>&1
  4. akzhan commented on Apr 3, 2012

    Member

    Hm. @dermoth can you test and add this as readme section to the project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL