Questions tagged [post-commit]

205 questions
0
votes
1 answer

using git/hooks for post-checkout

Since git always mess the file permission settings I want add a shell script to git do the permission change after checkout. So I thought of adding following to post-checkout #!/bin/sh find . -type f -print0 | xargs -0 chmod 664 find . -type d…
add-semi-colons
  • 18,094
  • 55
  • 145
  • 232
0
votes
0 answers

exit code 127 Email notification

Good Morning Everyone, We are working on sending email notifications of SVN commits and we are following the steps oulined here: http://sandilands.info/sgordon/email-notifications-of-svn-commits When testing, we still get following errors: Error:…
user2705124
  • 25
  • 1
  • 6
0
votes
2 answers

Subversion commit failed Merge of file: 200 OK post-commit hook

I modified our original repo for the dev checkout portion of our site. I tested the repo and all functions works properly. When I enabled the post-commit hook: #!/bin/sh /var/www/repos/XXXXX/autoupdate/autoupdate (which is a simple C compiled) I…
user2733937
  • 11
  • 1
  • 5
0
votes
1 answer

ubuntu svn post commit hook does not work, but works on manual running

/usr/bin/svn update /var/project2_test/debug --username XXXX--password XXXX /bin/echo $REV >> /var/project2_test/svn.log the log has been updated while committing. but working copy never update. And I run /home/admin/svn/project/hooks/post-commit…
user2724902
  • 83
  • 1
  • 1
  • 3
0
votes
1 answer

post-commit hook produces error on svn commit but works when run on manually on command line

I am currently trying to set up the post-commit hook for my subversion repository to send a email notifications. I am using subversion 1.7.8. My post-commit hook script is as follows: #!/bin/sh REPOS="$1" REV="$2" "$REPOS"/hooks/mailer.py commit…
0
votes
1 answer

SVN post-commit hooks have stopped working after upgrading to FogBugz 7

Our company have recently upgraded our FogBugz installation to version 7, downloaded the latest post-commit files, and followed the latest instructions on integrating SVN with FogBugz (to get lists of modified files for each case.) However, I've…
Jim McKerchar
  • 156
  • 2
  • 8
0
votes
1 answer

SVN post-execute batch script behavior differs from normal execution

Need a little help with svn post-commit batch script. Here what I have: post-commit.bat: 1. @ECHO OFF 2. cd D:\Subversion\...\hooks 3. SET OUTPUT = default 4. FOR /F "tokens=*" %%a in ('revision.bat') do ( SET OUTPUT=%%a ) 5. findstr /m "Autobuild"…
Boris Mocialov
  • 3,439
  • 2
  • 28
  • 55
0
votes
1 answer

Git commit to MySQL using a post commit hook

I would like to take the contents of each file pushed to a git repo, and store the file contents in MySQL. A quick google and read says I need to hook into git using a post-commit hook. However, what does the actual post-commit hook look like to…
Justin
  • 42,716
  • 77
  • 201
  • 296
0
votes
2 answers

Is it possible to automatically transfer/ftp files to a server, every time I commit a change to a svn repository?

Is it possible to automatically transfer/ftp files to a server, every time I commit a change to a repository?? If yes, please help me know how to set it up. Thanks.
user187580
  • 2,275
  • 11
  • 32
  • 39
0
votes
1 answer

svn post-commit: updating a working copy fails

I have a post-commit hook that should update a working copy like this /usr/bin/svn update /home/xxxx/htdocs/devel That unfortunately fails. (subversion should run as www-data, as I'm using apache with it.) Trying this: su www-data env -…
janoliver
  • 7,744
  • 14
  • 60
  • 103
0
votes
1 answer

Post-commit script wont export files starting with "@"

I'am using this post-commit script (it's not my work, I have it from here). #!/bin/bash REPOS="$1" REV="$2" # A - Item added to repository # D - Item deleted from repository # U - File contents changed # _U - Properties of item changed; note the…
0
votes
1 answer

Execute git command in hook post-commit

I have a post-commit hook. I would like to count the commit number every time I commit on my repo. I wrote : #!/bin/sh commit_number=$(git shortlog | grep -E '^[ ]+\w+' | wc -l) echo "$commit_number" Every new commit, terminal is printing 0 ... I…
Pete
  • 314
  • 4
  • 16
0
votes
1 answer

Git Repo Auto-commit and Push

I have a scenario where I have a repo where users access the files directly, they don't know git exists, and make changes to what are essentially text files. I have that repo cloned. So when a commit is made, the changes are pushed to the cloned…
awolfe76
  • 215
  • 5
  • 13
0
votes
1 answer

Running a git post-commit hook

I'm running MAMP locally. I have a php script that I use to build a web site, to generate static HTML files, that I then push to a web server. This process acts a lot like Jekyll on github pages. For now, I simply make changes to Markdown files (my…
awolfe76
  • 215
  • 5
  • 13
0
votes
1 answer

subversion per module add,copy,modify,delete notification

Currently I have a mailer.py file that sends an email when there is a commit on a particular repository. Anyone knows how to have ONLY emails sent out to the owner of modules (directories) within a…
Val Neekman
  • 17,692
  • 14
  • 63
  • 66
1 2 3
13
14