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
2
votes
1 answer

Code Review Tool for CollabNet SVN Edge

I'm using CollabNet Subversion Edge server on Windows to manage our code repositories and I really like the simple administration. What I am looking for is something open-source/free that would easily integrate with CollabNet's Subversion Edge to…
Kevin Green
  • 1,137
  • 11
  • 21
2
votes
0 answers

generating redmine tickets by scanning for @todo

While my question is partially answered here, i'd lke to go a step further. I want a post-commit hook to scan for @todo items, check back with redmine and see if they already exist as a ticket and if not, create the ticket and change the @todo to…
Andresch Serj
  • 35,217
  • 15
  • 59
  • 101
2
votes
1 answer

Bash script won't exit on input command

I have a bash script that runs on git post-commit hook. What it does is asking the user for an input and based on input it will trigger another action and exits. The problem is that it will not exit when the action is run, meaning when for example 0…
2
votes
2 answers

uberSVN branch post-commit hook

We are using uberSVN installed on linux. In the repository "R" we have different branches and I need to trigger the jenkins job for a commit on a specific branch "B". In the ....repository/R/hooks/ there is file named post-commit. The file content…
st.
  • 166
  • 6
  • 24
2
votes
1 answer

Subversion post-commit hook will not run on commit, script works because I can run it on the command line

I have just made a new repository. My server is Ubuntu 12.04 32 bit. I want my commits to be live as soon as I have committed them. This is achieved by making a working copy in my public html directory, and having the post-commit hook update that…
chiliNUT
  • 18,989
  • 14
  • 66
  • 106
2
votes
2 answers

SVN Hook stopped working - SVN update not executing

I have an SVN repository I set up about a month ago and after some struggles got a post-commit hook working to update a working copy of my web site on the development server. It was working fine for several days and then, yesterday, all of the…
Carl
  • 1,246
  • 3
  • 21
  • 39
2
votes
2 answers

Why is my post-commit hook conditional statement not working when I check to see if a particular branch was committed?

I'm running Subvbersion through VisualSVN Server on a Windows server and have my repository set up with a trunk and three branches. The branches are dev, test and prod. I have a post commit hook that I want to run which updates a working copy after…
Carl
  • 1,246
  • 3
  • 21
  • 39
2
votes
0 answers

GitHub for mac not behaving properly with post-commit hook

I usually use GitHub for Mac to commit code to my GitHub projects because it makes it a bit quicker to do. For my current project, I had to set up the following pre-commit hook: if [ -e images/sprites-01.png ] then mv -f images/sprites-01.png…
kettlepot
  • 10,574
  • 28
  • 71
  • 100
2
votes
1 answer

svn post commit hook only for milestones

We have (want to have) the following setup: Website + Svn on one Server and local machines to develop and test the website. i found post commit hook infos (german):…
Wandang
  • 912
  • 2
  • 8
  • 37
1
vote
4 answers

VisualSVN commit-hook add revision to a file in the repo

We have a PHP Project under SVN control(VisualSVN). Somehow, i need to update a file in the repo with the current revision number. So that when the main site gets updated/checkout we can show the svn build number (this part is not the issue). is it…
Christopher Chase
  • 2,840
  • 6
  • 36
  • 57
1
vote
2 answers

svn post-commit hook : update only if certain file has changed

Okay so I have an SVN repo setup on my server. I have a post-commit hook setup that updates to a "DEV" folder so that when I commit changes, it automatically pushes to my "DEV" subdomain on my server. What I need now is an easy way to push it to…
slinkhi
  • 947
  • 4
  • 16
  • 32
1
vote
1 answer

SVN hook and Windows batch script, whats wrong?

I want to use svnlook to only update those files of a repository that were changed/added and so on automatically. I have several apps in my repository and all could have changed files. Running svnlook changed pathtomyrep gives me the files, thats…
EOB
  • 2,975
  • 17
  • 43
  • 70
1
vote
1 answer

simple svn post-commit-hook updating dir with changed files

I used some script i found somewhere:(im a total svn noob, is it used for copying files after committing them to a repo?) #!/bin/bash REPOS="$1" REV="$2" # A - Item added to repository # D - Item deleted from repository # U - File contents…
Writecoder
  • 613
  • 2
  • 8
  • 27
1
vote
1 answer

Where should be the '.\format' folder

I have been getting the error message "VisualSVNServerHooks: Can't open file 'C:\Arquivos\format'" when I perform a commit to VisualSVN server. There is no any folder named "format" on the VisualSVN folder. Where it should be? Why it is been…
1
vote
1 answer

SVN Post-Commit Script Failing and causing working copy update problems

I've written a Perl post-commit hook that sends out emails via the Perl Net::SMTP module. I was getting the following error when I try to do a commit: Sending subversion/README Transmitting file data .svn: Commit failed (details follow): svn:…
David W.
  • 105,218
  • 39
  • 216
  • 337
1 2
3
8 9