Questions tagged [post-commit-hook]

In the context of Software Configuration Management (SCM), a post-commit hook is a command run just after a commit is performed.

The usual use of post-commit hooks is to send emails about the commit, nofify others tools (bugtrackers, continuous integration systems) or trigger a website publication or a backup process.

Related tags

  • Tag may be used in combination with this tag for git specific pre-commit hooks
  • Tag may be used in combination with this tag for SVN specific pre-commit hooks
135 questions
101
votes
8 answers

How can I automatically push after committing in Git?

How do I set Git to automatically push to a remote repository (including automatically providing my passphrase) after each commit to the local repository?
ulu
  • 5,872
  • 4
  • 42
  • 51
55
votes
6 answers

Github file change notification

Is there a way to notify people on change of some certain files? Specifically, I would like to track change of *.sql files and and notify our developers on a change. How can I configure post commit hooks to notify?
Cemo
  • 5,370
  • 10
  • 50
  • 82
52
votes
16 answers

How do I make Subversion (SVN) send email on checkins?

I've always found checkin (commit) mails to be very useful for keeping track of what work other people are doing in the codebase / repository. How do I set up SVN to email a distribution list on each commit? I'm running clients on Windows and the…
Joe Ludwig
  • 6,756
  • 7
  • 30
  • 29
33
votes
3 answers

Are there any good workarounds to the GitHub 100MB file size limit for text files?

I have a 190 MB plain text file that I want to track on github. The text file is a pronounciation lexicon file for our text-to-speech engine. We regularly add and modify lines in the text files, and the diffs are fairly small, so it's perfect for…
josteinaj
  • 477
  • 1
  • 4
  • 11
14
votes
5 answers

For every commit, create an equivalent compiled commit in a separate repo or branch

I'm building sites using Jekyll, which compiles ERB, SASS, &c. into plain HTML & CSS. After most commits, I'd like to compile the site and commit the compiled version in a separate repository or branch so that it can be pushed to a static…
Zaz
  • 46,476
  • 14
  • 84
  • 101
13
votes
3 answers

SVN post commit: Who is the user that committed?

In an SVN post commit hook, how can I get the user who executed the commit?
Blagomir
  • 253
  • 2
  • 9
13
votes
2 answers

SVN - Server SSL certificate untrusted from post-commit hook

I'm trying to create a post-commit.bat script so that every time someone commits, a working copy automatically updates. This is my post-commit.bat: "C:\Program Files\TortoiseSVN\bin\svn.exe" update C:\Temp\PROD --non-interactive --trust-server-cert…
lecnt
  • 353
  • 1
  • 3
  • 9
11
votes
3 answers

SVN post-commit hook sending a message back to client

I'm writing a post-commit script in bash, and I'd like to pass messages back to the client who's making a commit. However echo my message >&2 isn't making it back to the client. Is it even possible to send messages back with a post-commit hook?
CamelBlues
  • 3,444
  • 5
  • 29
  • 37
11
votes
2 answers

Git post commit: skip --amend and rebase

I have a post-commit hook that does stuff in ruby. It works very well but in some cases I would like to skip the code execution when I do a git rebase or git commit --amend. Does someone have an idea how I could not trigger the post-commit hook in…
Gregory
  • 557
  • 6
  • 17
10
votes
4 answers

SVN Post-Commit Hook error 255

I am trying to create a very simple post-commit hook for a repository I have set up on my server. The script is as follows: REPOS="$1" REV="$2" cd /var/www/directory && svn update --username user --password pass When I run a commit from my SVN…
Brendon Dugan
  • 2,138
  • 7
  • 31
  • 65
8
votes
1 answer

Why doesn't `git cherry-pick` (without `--no-commit`) run my post-commit hook?

How can I trigger a post-commit hook with the command git cherry-pick ? What I've tried: I tried the command git commit -m '...' . It triggered the post-commit hook normally. In the githooks document, there are no hooks related to…
LongFeida
  • 83
  • 1
  • 4
8
votes
3 answers

SVN post-commit update error (Can't create temporary file from template / permission denied)

My post-commit hook is: /usr/bin/svn update /var/www/html/mysite/ --username myusername --password mypassword --no-auth-cache >> /var/www/html/mysite/foo.txt 2>&1 After performing a commit, my post-commit hook outputs to foo.txt the…
user2644136
  • 91
  • 1
  • 1
  • 3
8
votes
5 answers

Trouble with SVN post-commit and Jenkins

I am trying to get CI going with Jenkins. To date, we have been performing two scheduled builds in our environment, but our dev staff wants to get CI working. I have followed the instruction outlined in the Jenkins Subversion Plugin wiki…
jarhorn
  • 115
  • 1
  • 4
7
votes
1 answer

Triggering Jenkins builds remotely with post-commit hook on Windows

I'm setting up my Subversion post-commit hook to trigger a Jenkins build remotely when a commit is made. First I changed post-commit.tmpl to post-commit.bat and then: I tried this first: SET REPOS=%1 SET REV=%2 C:/wget_for_win/wget…
Min Naing Oo
  • 1,085
  • 5
  • 24
  • 49
6
votes
2 answers

Why is a Git post-commit hook on non-interactive rebase not run?

Given an arbitrary, executable Git post-commit hook it is not run during a non-interactive rebase, neither with rebase --force-rebase nor with rebase --no-ff which is a synonym for the former in non-interactive mode according to the GIT-REBASE(1)…
Tim Friske
  • 2,012
  • 1
  • 18
  • 28
1
2 3
8 9