WebFaction
Community site: login faq

I want to run a post-commit script whenever I check in a new change to my Subversion repository - how can I make that work?

asked 19 Oct '10, 17:46

seanf
12.2k41836
accept rate: 37%

closed 28 Jun '14, 11:37

timg ♦♦
1.3k4


If you want to send email whenever you check in a change to your repo, you can follow the instructions here: Send Email Notifications with a Post-Commit Hook

If you want to update a working copy or do some other operation that requires write permissions in your home directory, it's a bit more complicated. You need to:

  • Compile a small C program that runs the command you need.
  • Set the permissions on that program so that it runs as your user.
  • Call that program from your post-commit script

It's not as hard as it sounds - one of our users has provided step-by-step instructions in this forum post: SVN hooks

permanent link

answered 19 Oct '10, 17:54

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×41
×7
×4

question asked: 19 Oct '10, 17:46

question was seen: 3,686 times

last updated: 30 Jun '14, 16:03

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM