Questions tagged [post-commit]
205 questions
220
votes
9 answers
Editing the git commit message in GitHub
Is there any way of online editing the commit message in GitHub.com, after submission?
From the command line, one can do
git commit --amend -m "New commit message"
as correctly suggested in the following question:
How to modify existing, unpushed…

PNS
- 19,295
- 32
- 96
- 143
54
votes
4 answers
Post Commit Hook Not Running
My post commit hook is not running after git. I have verified that the hook does work if I just run it from the terminal. The code in the hook is:
#!/bin/sh
#.git/hooks/post-commit
# An example hook script that is called after a successful
#…

Dave Long
- 9,569
- 14
- 59
- 89
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
26
votes
2 answers
Git commit hooks per branch
I'm working on getting into some more advanced usage of git, and I think hooks are the way that I want to go, perhaps somebody can give me some advice here.
My plan is to have a git repository with 3 branches (development, staging, and production). …

Eugene
- 4,829
- 1
- 24
- 49
24
votes
4 answers
Git post-commit hook as a background task
I have a script, that I need to run after committing to a project under git revision control. Therefore I created a post-commit hook in my projects .git directory in the subdirectory /hooks, named it 'post-commit' and gave it the following…

GeorgieF
- 2,687
- 5
- 29
- 43
22
votes
6 answers
This client is too old to work with working copy
Everywhere I go on google I get the same answer to this problem but it is the wrong answer for me. Originally I installed Subversion 1.5.6 for windows (i run Windows Server 2008) on my server and i made a repository for a project. Then I used a…

Adamantine
- 435
- 2
- 5
- 13
21
votes
7 answers
Running another program in Windows bat file and not create child process
I have subversion server with a post-commit hook to do something.
I want the checkin finish soon, not wait the hook script.
But by design, the Subversion post-commit hook script will run until all child process exit, so using somthing like:
start…

zhongshu
- 7,748
- 8
- 41
- 54
20
votes
4 answers
Using SVN post-commit hook to update only files that have been committed
I am using an SVN repository for my web development work. I have a development site set up which holds a checkout of the repository.
I have set up an SVN post-commit hook so that whenever a commit is made to the repository the development site is…

TheKeys
- 675
- 2
- 7
- 14
15
votes
2 answers
read-only git mirror of an svn repository
What would be the best way to set up a read-only git mirror of an existing svn repository, and set up post-commit hooks such that whenever someone commits to svn, the git mirror is automatically updated? Mainly, I'd like to run git-svn clone just…

Martin DeMello
- 11,876
- 7
- 49
- 64
14
votes
2 answers
how to get project path in hook script post-commit?(git)
I want to call a Script that is located in the repository.
I could of course do the following:
#!/bin/sh
../../myscript.sh
but I think thats not nice ;)
so how do I get the path of my project within the post-commit script?

kmindi
- 4,524
- 4
- 31
- 47
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
9
votes
3 answers
Github commit messages to Skype chat bot
I'd like to have a bot which sends Skype chat notifications for Github commits.
I didn't find Skype in Github project admin hooks. Any idea where I should start looking examples?

Mikko Ohtamaa
- 82,057
- 50
- 264
- 435
9
votes
2 answers
Hudson - missing Trigger builds remotely option
I'm trying to set post commit build on Hudson but I can't enable Trigger builds remotely (e.g., from scripts) option in Hudson.
I have installed lots of plugins, google it for a while but all without success. This problem is kind of solved in…

Sobis
- 1,385
- 4
- 20
- 29
9
votes
7 answers
Pretty SVN commit emails: templates
Where can I find good templates for svn commit emails?
Google led me to this. Even though it was much better than the default post-commit, I didn’t find it very useful.
Help much appreciated.

Quintin Par
- 15,862
- 27
- 93
- 146
8
votes
2 answers
post commit hook to update a file under version
I have made a file called version.ini that is under version control (/trunk/version.ini)
i now wanted to make a post commit hook to update that file with the latest version.
But i dont know what command can do that. I know i have this…

Gabriel Solomon
- 29,065
- 15
- 57
- 79