post-commit-hook

SVN post-commit hook sending a message back to client

梦想与她 提交于 2019-12-04 17:43:31
问题 I'm writing a post-commit script in bash, and I'd like to pass messages back to the client who's making a commit. However echo my message >&2 isn't making it back to the client. Is it even possible to send messages back with a post-commit hook? 回答1: Condering a post-commit hook does: anything that the hook printed to stderr will be marshalled back to the client, making it easier to diagnose hook failures. you can check if this isn't a simple quote issue: echo "my message" >&2 You can see in

Git post commit: skip --amend and rebase

跟風遠走 提交于 2019-12-03 13:00:41
I have a post-commit hook that does stuff un ruby. It works very well but in some cases I would like to skip the code execution when I do a rebase or when I do a commit --amend. Does someone have an idea how I could not trigger the post-commit hook in these cases or any work around? Greg When rebasing, there's a directory called rebase-merge present in the .git folder. That could be an approach to disable the hook during a rebase (the start of a rebase btw is indicated by the pre-rebase hook). Regarding the --amend however, I can't help you. If you want to detect git commit --amend from a hook

Github file change notification

半世苍凉 提交于 2019-12-03 05:36:14
问题 Is there a way to notify people on change of some certain files? Specifically, I would like to track change of *.sql files and and notify our developers on a change. How can I configure post commit hooks to notify? 回答1: If you want folks to get notified via email, and you want them to manage their own notifications, then https://app.github-file-watcher.com/ should do the trick - it monitors any public repo, and will notify you via email of changes to any file, a specific file, or some files

Why is my post-commit hook conditional statement not working when I check to see if a particular branch was committed?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 10:32:20
I'm running Subvbersion through VisualSVN Server on a Windows server and have my repository set up with a trunk and three branches. The branches are dev, test and prod. I have a post commit hook that I want to run which updates a working copy after a commit is run, but I only want it to update that working copy if the commit was made in the dev branch. This is the code I have right now... @setlocal enableextensions enabledelayedexpansion @echo off SET str1=%1 IF NOT x%str1:dev=%==x%str1% ( pushd <path to working copy> svn update --username <svn_username> --password <svn_password> echo update

Why is my post-commit hook conditional statement not working when I check to see if a particular branch was committed?

北战南征 提交于 2019-12-01 08:25:21
问题 I'm running Subvbersion through VisualSVN Server on a Windows server and have my repository set up with a trunk and three branches. The branches are dev, test and prod. I have a post commit hook that I want to run which updates a working copy after a commit is run, but I only want it to update that working copy if the commit was made in the dev branch. This is the code I have right now... @setlocal enableextensions enabledelayedexpansion @echo off SET str1=%1 IF NOT x%str1:dev=%==x%str1% (

Are there any good workarounds to the GitHub 100MB file size limit for text files?

我的梦境 提交于 2019-11-30 08:09:07
I have a 190 MB plain text file that I want to track on github. The text file is a pronounciation lexicon file for our text-to-speech engine. We regularly add and modify lines in the text files, and the diffs are fairly small, so it's perfect for git in that sense. However, GitHub has a strict 100 MB file size limit in place. I have tried the GitHub Large File Storage service, but that uploads a new version of the entire 190 MB file every time it changes - so that would quickly grow to many gigabytes if I go down that path. I would like to keep the file as one file instead of splitting it

Trouble with SVN post-commit and Jenkins

只谈情不闲聊 提交于 2019-11-30 03:35:05
问题 I am trying to get CI going with Jenkins. To date, we have been performing two scheduled builds in our environment, but our dev staff wants to get CI working. I have followed the instruction outlined in the Jenkins Subversion Plugin wiki page: https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin This got me to a script that executes at the command line just fine, however when I commit a change in Subversion (using the TortoiseSVN client), the commit seems to hang and I don't see

Are there any good workarounds to the GitHub 100MB file size limit for text files?

一笑奈何 提交于 2019-11-29 05:42:24
问题 I have a 190 MB plain text file that I want to track on github. The text file is a pronounciation lexicon file for our text-to-speech engine. We regularly add and modify lines in the text files, and the diffs are fairly small, so it's perfect for git in that sense. However, GitHub has a strict 100 MB file size limit in place. I have tried the GitHub Large File Storage service, but that uploads a new version of the entire 190 MB file every time it changes - so that would quickly grow to many

How do I make Subversion (SVN) send email on checkins?

风流意气都作罢 提交于 2019-11-27 17:48:52
I've always found checkin (commit) mails to be very useful for keeping track of what work other people are doing in the codebase / repository. How do I set up SVN to email a distribution list on each commit? I'm running clients on Windows and the Apache Subversion server on Linux. The answers below for various platforms will likely be useful to other people though. pix0r You use the post-commit hooks . Here's a guide . Here's a sample Ruby script that sends an email after each commit: commit-email.rb Marius Have a look at the standalone Subversion Notify tool (Windows only!) It can do emailing

How do I make Subversion (SVN) send email on checkins?

拥有回忆 提交于 2019-11-26 19:10:45
问题 I've always found checkin (commit) mails to be very useful for keeping track of what work other people are doing in the codebase / repository. How do I set up SVN to email a distribution list on each commit? I'm running clients on Windows and the Apache Subversion server on Linux. The answers below for various platforms will likely be useful to other people though. 回答1: You use the post-commit hooks. Here's a guide. Here's a sample Ruby script that sends an email after each commit: commit