Questions tagged [post-commit]

205 questions
8
votes
2 answers

Delete and completely remove the commit from git history

I have a commits in my git history 1.commit 4930da17d8dd23d650ed38435d8b421816a0c451 Date: Sat Dec 5 14:34:18 2015 +0530 2.commit e1ebbbb599ee20ebec3ca92c26266d9fd16e7ccc Date: Sat Dec 5 13:22:20 2015 +0530 3.commit…
vijay
  • 117
  • 1
  • 1
  • 7
7
votes
4 answers

Using post commit hook to export in VisualSVN Server

What is the easiest way to use post-commit hook with VisualSVN Server to export from the repository to a directory for staging / testing after a developer commits his changes?
Brad
5
votes
3 answers

SVN post commit hook to email user when a particular file is changed

I would like to add a post commit hook so that if a user commits changes to a particular file, I will be notified by email. Has anyone seen an example of this, or is it possible? I have set up a pre commit hook before, but that's limit of my…
John
  • 698
  • 1
  • 11
  • 22
5
votes
1 answer

Git hook output - where to see/find

I'm trying to get a git commit email hook running using Git on Windows. I'm sure I've got my copy of contrib/hooks/post-receive-email (placed in the project's .git/hooks/post-commit) script messed up, or I'm missing an important node in my config,…
cori
  • 8,666
  • 7
  • 45
  • 81
5
votes
3 answers

SVN post-commit hook not executing file

I have created an exe file that will print to console the first and second arguments that it receives. In the SVN post-commit hook I wrote: PATH_TO_FILE\print.exe "%1" "%2" when I make a check-in, it gets stuck. %1 is the PATH %2 is revision…
Oded
  • 795
  • 2
  • 12
  • 32
5
votes
1 answer

How can I open a TTY for interaction with git-push hooks?

I am using the git-deploy Ruby gem to deliver an application to the staging server. The deployment is performed with SSH keys. In my after_push script I want to run a command with sudo, which subsequently asks for my password, since sudo rights are…
ringe
  • 812
  • 6
  • 14
4
votes
1 answer

Using git add inside a pre-commit hook

TL;DR: Using eslint --fix && git add in a pre-commit hook works but it leaves staged and not staged files! Using a post-commit hook to git reset seems to work but is there a solution for this? To give some background, I started using…
Samuel Sharpe
  • 196
  • 1
  • 6
4
votes
2 answers

Svn hook encoding problem

I created a svn hook that calls a php script to send some emails. The problem is that I am getting incorrect encoded msg's (I think that's what you can call it) This is what I get in my mail: Modified files -…
AntonioCS
  • 8,335
  • 18
  • 63
  • 92
4
votes
1 answer

"You need version 1.5.0 or better of the Subversion Python bindings" while using mailer.py

I am trying to setup a post-commit hook in my Subversion server to send email notifications on commits. I am trying to use the mailer.py script that came with my Subversion installation. However, when the script is executed by the hook, I get this…
4
votes
3 answers

How to set and manipulate custom svn revision property using hooks

I want to configure the following: When developers check-in code from their SVN client, a hook should verify whether it has a revision property "CodeReview" set along with the value of the property if it is set. If it is not set then add the…
Yeshwant
  • 71
  • 5
4
votes
2 answers

How to conditionally send svn commit email, based on commit message keywords?

I've got VisualSVN running with svnnotify sending notification email via post-commit (the common setup), but I'd like to not send email when certain keywords are included in the commit message, such as "#noemail" or something similar. Anyone have an…
shaunmartin
  • 3,849
  • 2
  • 25
  • 26
4
votes
1 answer

How can I run ssh from a subversion post-commit script?

We have an svn server here with multiple paths. What I'm looking for, and I might not have looked hard enough, is a post-commit script that, whenever something is checked into a specific path, does an ssh to another server and runs a bash…
GameGamer43
4
votes
1 answer

Subversion post-commit hook to update 'staging' version not working

We have a staging version of our web application (it is basically a subversion working copy that no-one works on) that lives in '/apps/software'. Each developer has their own working copy in '~/apps/software'. I would like to utilise a simple…
user159895
4
votes
4 answers

Only trigger a build on commits to the trunk with svn

I have just set up a post-commit script in our subversion repository that triggers a build by requesting a hudson build URL. This works fine as expected, however now I only want to trigger this build if the commit was to the trunk. our post-commit…
0xC0DEFACE
  • 8,825
  • 7
  • 34
  • 35
4
votes
2 answers

SVN post-commit hook won't run after a commit

I have an SVN repo set up on my server and am having post-commit issues. I am using SmartSVN as my client on my iMac. I connect through ssh+svn from SmartSVN. I am able to successfully connect to the SVN and make changes to it, but my post-commit…
Dom
  • 1,018
  • 2
  • 11
  • 20
1
2
3
13 14