Giter Site home page Giter Site logo

Comments (9)

ivomarino avatar ivomarino commented on August 17, 2024 1

I'm also interested in this. I've put the whole code in post-commit but it does not seem to start.
It neither gets inside the while on line 311:

while read line; do
  set -- $line
  notify $*
  RET=$?
done

there seems no line to be read. If I add an echo test at the beginning of the script I can see it so I know post-commit is executed. Any suggestions? Thanks.

from git-slack-hook.

jovandeginste avatar jovandeginste commented on August 17, 2024 1

According to some other hooks: oldrev newrev refname

oldrev will be previous commit, newrev latest commit and refname will be
something like refs/heads/master

Met vriendelijke groet,
Jo Vandeginste

from git-slack-hook.

ofek-a avatar ofek-a commented on August 17, 2024

I need this as well, any help?

from git-slack-hook.

abhisheksagi avatar abhisheksagi commented on August 17, 2024

Hey guys yes it should work with locally hosted git as well

from git-slack-hook.

abhisheksagi avatar abhisheksagi commented on August 17, 2024

you just need to add it to your post commit hook in locally created git repository

from git-slack-hook.

Brendonwbrown avatar Brendonwbrown commented on August 17, 2024

Exactly. Post-recieve hooks run after a remote gets updates. Post-commit runs after each commit. For some reason, however, my post-commit is not working.

from git-slack-hook.

jovandeginste avatar jovandeginste commented on August 17, 2024

@Brendonwbrown is the hook not executing, or is the script not behaving as expected?

from git-slack-hook.

jovandeginste avatar jovandeginste commented on August 17, 2024

I think you will need to write a wrapper script to be called from either 'commit-msg' or 'post-commit' - see https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

from git-slack-hook.

ivomarino avatar ivomarino commented on August 17, 2024

Yes, seems so. At this point the question is what we need to pass over to the original script, as arguments, in order to start the while loop? Thanks for feedback.

from git-slack-hook.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.