Questions tagged [post-commit]

205 questions
0
votes
1 answer

Subversion post-commit hook to trigger exporting repo to other directories

I'm trying to write a post commit hook script for svn to export repository to multiple directories (so when you commit a code, that latest version of the code gets copied to other directories also). For example I have a repo which has 4 paths (or…
0
votes
2 answers

how to run svn update via svn post-commit hook

Goal: update /var/www with latest on svn commit. ubuntu server 10.10, latest apache2, latest svn, location: /var/svn/[projectname] To do this I created a simple post-commit script: #!/bin/bash #tests if www-data user runs this script on commit…
JOHN
  • 11
  • 1
  • 1
0
votes
1 answer

SVN post-commit that uses SVN to update another directory

I'm trying to make a post-commit script that will, when I push changes to the server, will update the "staging" (where the client does actually have access). But the problem is that when the post-commit is called (I sudo su'ed to the svn user) and…
Tommy B.
  • 3,591
  • 14
  • 61
  • 105
0
votes
1 answer

How to set post-commit script in SVN to update modified files?

I deleted post-commit.tmpl, and in post-commit file, here is the code: #!/bin/sh export LANG=en_US.UTF-8 SVN_Path=/root/svn/myblog WEB_Path=/home/app/myblog echo `date "+%Y-%m-%d %H:%M:%S"` $SVN_Path update --username xxx --password yyy…
Henry Yong
  • 97
  • 11
0
votes
1 answer

svn: E175002: MERGE request on svn/xxx failed: 504 Gateway Time-out. Can't write response to output: Broken pipe

Client ERROR: svn: E175002: Commit failed (details follow): svn: E175002: MERGE request on '/svn/my_repos/trunk/app' failed: 504 Gateway Time-out Server ERROR LOG: [Thu Aug 25 09:24:49.466833 2016] [dav:error] [pid 20669] [client…
rhinoceros.xn
  • 803
  • 9
  • 12
0
votes
1 answer

svn export from post commit does not work on window?

I am setting up a SVN server in a windows environment: Whenever a tag is made, the post-commit script export a certain number of information about the tag (like author, comments, dependencies ...). I also want to attach specific files from the…
TocToc
  • 4,739
  • 4
  • 29
  • 34
0
votes
1 answer

SVN Hook does not have write permissions

I have successfully set up a post-commit script that can send e-mails and whatever. I extended it to, on commit, checkout the newly committed repo locally and run doxygen on it. I have an issue with permissions though. When I do a commit (which is…
Sune
  • 1
0
votes
1 answer

Subversion: How to rerun post-commit scripts for all revisions?

We have installed an integration of our SVN repository with a bug tracker. The bug tracker is called from the post-commit hook to get information about the tickets closed in a commit. Since we have been using the bug tracker for a lot of commits, we…
Christopher Oezbek
  • 23,994
  • 6
  • 61
  • 85
0
votes
1 answer

SVN hook to modify files and sync after commit

I'm looking for a way / post-commit hook to go through all committed files on every commit and remove some "known" confidential information from those files - like passwords with sed. After this cleanup is done I would like to have those files…
mat1010
  • 756
  • 1
  • 9
  • 17
0
votes
1 answer

SVN: Differences between whole-repository updates and single-file updates?

We have a commit hook that runs an 'svn update' on a remote working copy every time a commit finishes. Users want to see committed changes immediately reflected in this remote copy. Users are extremely unhappy with the performance of running 'svn…
0
votes
2 answers

Script to execute on CVS check-in, without access to the server?

Is it possible to write a script that executes certain instructions, and is triggered by any check-in to a CVS repository? The script would scan the list of files in the change-set and do a copy operation on certain files in a certain…
Jonathan
  • 32,202
  • 38
  • 137
  • 208
0
votes
1 answer

SVN Post-commit - workingcopy locked

to explain my problem and server settings: My repo is in /svn/repos/testrepo My checkout, which is also reachable through apache http is in /var/www/testsite post-commit: #!/bin/sh /svn/autoupdate/autoupdate autoupdate.c, compiled with make…
Vamiris
  • 91
  • 1
  • 10
0
votes
1 answer

Asana and SVN Integration

Asana has an API out which they are calling their "REST" api. https://blog.asana.com/2012/04/announcing-the-asana-api/ Some people have made a post-commit script for git which allows you to add a "#task-id" into the message section when you make a…
rapid3642
  • 913
  • 2
  • 14
  • 26
0
votes
1 answer

Subversion post-commit hook to sync rep with FTP server ( for a website )

I've installed a repository on my computer locally. What I'm trying to do is be able to work on a website locally on my computer and see changes using something like MAMP. When I commit a change though I'd like it to sync my repo with the live…
Brett
  • 11
  • 4
0
votes
2 answers

How do I trigger Jenkins build with SVN post-commit?

I am trying to compose an SVN post-commit script, with the purpose of realizing that, whenever one of the developers commit to an SVN repository, it will trigger a Jenkins build and deploy the project automatically. I followed the instructions in…
sincosmos
  • 370
  • 2
  • 7
  • 15