For anyone who stumbles upon this in the future, I found a very simple
workaround to force the commit hooks (including commit-msg) to run
following a merge operation: Simply create a post-merge hook which
triggers an amended commit with no changes.
post-merge hook:
#!/bin/bash
git commit --amend
Joseph Dunne writes:
> Valid point. The way my project is set up I always get a conflict on
> merge operations, so technically all my merges (except fast forward
> merges) end with a git-commit, which of course runs the commit-msg
> hook. It seems everything is working as designed. Shame there
Valid point. The way my project is set up I always get a conflict on
merge operations, so technically all my merges (except fast forward
merges) end with a git-commit, which of course runs the commit-msg
hook. It seems everything is working as designed. Shame there isn't
a merge-msg hook.
It se
On Tue, 2017-09-12 at 13:24 -0500, Joseph Dunne wrote:
> Sorry I don't understand your question. The commit-msg hook runs
> properly in all cases except when I perform a merge with the --no-ff
> option enabled.
>
It's working just as the documentation says it does (emphasis mine),
This hoo
Sorry I don't understand your question. The commit-msg hook runs
properly in all cases except when I perform a merge with the --no-ff
option enabled.
On Mon, Sep 11, 2017 at 12:25 PM, Stefan Beller wrote:
> On Mon, Sep 11, 2017 at 7:34 AM, Joseph Dunne wrote:
>
>> When I merge ... however my co
On Mon, Sep 11, 2017 at 7:34 AM, Joseph Dunne wrote:
> When I merge ... however my commit-msg hook does not run. (The
> commit-msg hook works fine in all other commits / merges.)
When using git-commit, but not git-merge?
See the discussion of patches at
https://public-inbox.org/git/20170907220
I’ve globally configured git master branch to use the –no-ff option in
my .gitconfig file:
[branch "master"]
mergeoptions = “-–no-ff”
When I merge a branch into master that would normally be a fast
forward merge, the merge happens fine and follows the option –no-ff,
creating a new
7 matches
Mail list logo