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
5
votes
2 answers

SVN post-commit - permission denied to .svn/lock

After commiting, I get a post-commit hook failed error: svn: Can't open file '.svn/lock': Permission denied Oddly, my post-commit hook file runs perfectly fine on it's own, just not when called from an actual commit. Now, the post-commit file ends…
ACarter
  • 5,688
  • 9
  • 39
  • 56
4
votes
1 answer

Can the "post-receive" hook in gitlab-shell still be used for a custom hook?

According to the content of the gitlab-shell post-receive hook, it's deprecated. #!/usr/bin/env ruby # This file was placed here by GitLab. # IT IS DEPRECATED NOW. # All GitLab logic handled by update hook But only for Gitlab specific logic or…
nietonfir
  • 4,797
  • 6
  • 31
  • 43
4
votes
2 answers

SVN Post Commit Hook on list of files

I have many files present in my server. I want to set post-commit hook for some files only. ie. A notification mail should sent only when these files are updated. I have installed SVN Notify and its working fine for all the files in SVN server. But…
Sachin Mhetre
  • 4,465
  • 10
  • 43
  • 68
4
votes
3 answers

SVN hook mailer.py configuration

I try to set up a post-commit hook on a subversion 1.6.12 server to send a notification mail on commit. I am already using the script mailer.py (delivered by subversion team in the utils folder) with basic configuration (just send an email after…
Nicolas Payart
  • 1,046
  • 14
  • 28
3
votes
2 answers

No module named _core when using mailer.py on Windows/Python 2.7

I'm trying to configure and run SVN post-commit hook sending mails. I've downloaded class mailer.py, installed Python 2.7 and svn-win32 bindings for svn. The machine is Windows-7 64 bit, the Python is 32 bit. Now the mailer.py ends with error, which…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
3
votes
1 answer

Post Commit Email in Windows Server

I am currently working on a project that requires the use of SVN on Windows. I am keen to set up a post-commit hook so that any changes to the codebase is emailed out to all relevant users that the repository has changed. Running a post-commit hook…
Codemwnci
  • 54,176
  • 10
  • 96
  • 129
3
votes
1 answer

Visual SVN Server: Guide on Pre/Post Commit Hooks

This may be best as a wiki, given comments on here: Share common / useful SVN pre-commit hooks I'm using Visual SVN 2.1.7 on a Windows 7 machine. We have developers committing from various countries and we can manage the code changes by running…
arcaneerudite
  • 41
  • 1
  • 3
3
votes
2 answers

Is there a way to queue a VSTS build with SVN post commit hook?

Is there a way to trigger/queue a build on VSTS using an SVN post-commit-hook? Our svn repository is behind a firewall so isn't visible to VSTS for the built in polling it offers. But I want to be able to queue builds after changes to trunk. Is…
3
votes
1 answer

dealing with riak datatypes in postcommit hooks

I am wanting to implement a postcommit hook for riak that decrements a counter in a map in another bucket. However I am having a bit of trouble dealing with the riak datatypes. Here is me attempting from riak console: (riak@127.0.0.1)9>{ok, C} =…
jisaacstone
  • 4,234
  • 2
  • 25
  • 39
3
votes
1 answer

Can I trigger a git hook after a commit from Gitlab web editor?

I use git, specially in conjunction with Gitlab (7.7.1 + shell 2.4.1), to wire together a bunch of parts of my development workflow. The post important part of this is the post-receive hooks that happen on the server end that run various tests and…
Caleb
  • 5,084
  • 1
  • 46
  • 65
3
votes
2 answers

SVN post-commit script not being executed

I have spent a couple weeks now trying to resolve this issue (without any progress). I followed the svn redbook section "Implementing Repository Hooks" by: copying the $REPOSITORY_HOME/hooks/post-commit.tmpl file to…
akg1817
  • 31
  • 1
  • 2
3
votes
3 answers

post-commit hook, svn: E020024: Error resolving case of

I'm using VisualSVN Server to manage a source folder. It's installed on a Windows XP machine, and it has access to a network disk. On this network disk named W:, I made a checkout on a folder this way: svn checkout https://server:443/svn/Project…
Elias Platek
  • 1,074
  • 1
  • 9
  • 16
3
votes
1 answer

How to mock a post commit hook in github, for a repo that is not owned

Id like to enable a post commit hook on a repository that I do not own. Is this possible via forking + tracking ? Or is there another way to enable watching commits of another repository so that your own repository can enable custom post-commit…
jayunit100
  • 17,388
  • 22
  • 92
  • 167
3
votes
1 answer

Simple SVN post-commit hook to export changed files to test server

With SVN I am currently exporting the contents of the repository to a test server manually using the following command on the test server (after logging in via SSH/Shell): svn export http://svn.domain.co.uk/project /home/user/public --force However…
Jasdeep Khalsa
  • 6,740
  • 8
  • 38
  • 58
3
votes
4 answers

SVN Post Commit Hook Batch Windows

I have a Windows Server running Visual SVN Server to store our repositories. Also on that server is our test copy. I'm trying to set up a simple SVN post-commit hook so it updates that test copy automatically every time I commit something In Visual…
Federico Giust
  • 1,803
  • 4
  • 20
  • 45
1
2
3
8 9