Skip to content

pre-commit is not installed by default #9

Closed

Description

@dscho

When installing SDK 0.4, /packages/.git/hooks/ does not contain the pre-commit hook.

Activity

  1. self-assigned this
    on Oct 13, 2014
  2. dscho commented on Oct 13, 2014

    @dscho
    MemberAuthor

    @t-b @sschuberth I hope you don't mind that I activated the issue tracker. I also added two labels: sdk and sdk-packages.

  3. sschuberth commented on Oct 13, 2014

    @sschuberth

    When installing SDK 0.4, /packages/.git/hooks/ does not contain the pre-commit hook

    Actually, I didn't install the pre-commit on purpose yet, because it does not work when amending / rebasing, and there might be other cases when you don't want the hook. If at all, it should probably be an option on the last page of the installer.

  4. dscho commented on Oct 13, 2014

    @dscho
    MemberAuthor

    I didn't install the pre-commit on purpose yet, because it does not work when amending / rebasing

    I think I found out why: there is an explicit test whether the date was modified manually. And during a rebase, it looks as if it was modified manually (because it was modified in an earlier iteration of the topic branch).

    Might make sense to split out the date bumping logic from the pre-commit hook so you can call it manually. Might also make sense to detect an amend/rebase and ask the user interactively (if on an interactive terminal).

  5. sschuberth commented on Jan 12, 2015

    @sschuberth

    @dscho Could you please check whether sschuberth/gfw-msys1-packages#36 fixes the rebase use-case?

  6. dscho commented on Mar 8, 2015

    @dscho
    MemberAuthor

    @sschuberth Sorry for lagging so long; I see you verified the fix already!

  7. sschuberth commented on Mar 9, 2015

    @sschuberth

    To be precise, I did not verify my change, but just re-reviewed it before manually merging it. So it should work ok now when amending / rebasing. Still, this issue is about the pre-commit hook not being installed by default, and that's still the case. I intend to not spend any more time on this and keep it that way as the MSYS- / mgwport-based toolchain is more or less abandoned now in favor of MSYS2 and pacman.

  8. added a commit that references this issue on Mar 30, 2015
  9. added a commit that references this issue on Apr 30, 2016
  10. 114 remaining items

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions