Bug 3364 - MonoDevelop does not execute git post-commit hook
Summary: MonoDevelop does not execute git post-commit hook
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: 2.8.6
Hardware: Macintosh Mac OS
: Low normal
Target Milestone: ---
Assignee: Marius Ungureanu
URL:
Depends on:
Blocks:
 
Reported: 2012-02-10 09:13 UTC by guivho
Modified: 2016-01-08 09:34 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 3364 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description guivho 2012-02-10 09:13:40 UTC
When committing to git via the MonoDevelop gui, the post-commit hook is
not executed.

When I commit to the same repository from the command line, or e.g. from
Vim's VCSCommand plugin, the hook is executed.

I assume that this bad behavior also occurs with the other hooks, but I
have not tested this.

I commonly use a perl script as post-commit hook that extracts the
latest commit log and sends it to a dedicated email address in order to
have a central time related view of he changes applied to several
repositories in parallel.

Right now I always must remember to either not commit from within
MonoDevelop, or to execute the post-commit script manually from the
command line afterwards, after changing to the root directory of the
project.
Comment 1 Alan McGovern 2012-02-13 10:43:39 UTC
Our implementation of git does not support any of the git hooks as of yet. I added a link to the relevant bug on the upstream project so we can monitor progress on this.
Comment 2 Marius Ungureanu 2014-12-13 22:31:33 UTC
Commenting for libgit2 support. LibGit2 will not shell out to implement core git hooks, so we'll still have to implement them on the application side.
Comment 3 Marius Ungureanu 2016-01-08 09:34:40 UTC
Since there is no API yet for executing post-commit hooks, this can't be fixed for a while.