The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
43 views

How can I configure git to reject large files?

For the 3rd time a developer committed a large file in our git repository (over 100MB). It's really a pain to cleanup. How can I configure git and/or gitolite to prevent large files from ever being ...
0
votes
1answer
78 views

sudoers nopasswd switch user and run node not working

I'm trying to prevent a password prompt on a command that runs node as the www user by adding the following line to the bottom of my /etc/sudoers file: gituser ALL=(ALL) NOPASSWD: /usr/bin/sudo -u ...
0
votes
1answer
18 views

Is it possible de read and modify conflicted files in a svn hook

I'm wondering if it is possible to read the two merging files and modify the result in a svn hook in order to prevent a conflict I know how to fix automatically? Before a delivery, modified files are ...
0
votes
1answer
37 views

Is there a hook that I can use to detect if one of my hard drive partitions on my server is full?

I have a server with a partition that contains all the uploaded files from my users... It gets empty after the files received are send to the CDN. Everything works. But I am worried that one day the ...
2
votes
1answer
2k views

How to setup Gitlab with post-receive hook?

I am using Gitlab on one server and would like to push my git repository on commit of the master branch to another webserver. So when I push a new version of the website the production server gets ...
0
votes
1answer
47 views

Virtualbox hook into host machine

I want to write a script that can add new hosts to /etc/hosts from within a virtual machine as I use VMs for web development and need to set up virtualhosts that are accessible from the host machine. ...
1
vote
2answers
132 views

SFTP post upload hook

How would I run a script after a file has been successfully uploaded over (a chrooted) SFTP? I have this working on standard FTP connection using PureFTP ...
3
votes
2answers
124 views

Writing an SVN hook that updates copy of committed code

I have a SVN repository with a lot of sub-projects stored in it. Right now in my post-commit I just loop through all possible folders on the machine and run svn update on each: REPOS="$1" REV="$2" ...
1
vote
0answers
274 views

post-receive hook permission denied “unable to create file” error

Just got gitolite installed on my webserver and am trying to get a post-receive hook that can point the git dir in apache's direction. This is what my post-receive hook looks like. Got this script ...
0
votes
2answers
66 views

Adding SVN hooks - downtime required?

I have been asked to add a hook script to some SVN repositories. The repositories run under Apache with the mod_dav_svn module. Do I need to restart Apache in order that the hook is picked up or will ...
3
votes
3answers
512 views

How do I use git-push --mirror with git-shell in SSH?

I am attempting to setup a mirror-to-backup hook in our repositories. The hook is executing a git push --mirror backup@server:path/foo.git. However it fails stating: fatal: What do you think I am? A ...
3
votes
1answer
591 views

Update Git super repository automatically when a submodule gets updated

in our company we have a huge code base (>100000 files) and so we keep it in several git repositories. So we have a forest of repositories and one super repository containing only submodule references ...
3
votes
2answers
2k views

SVN: Error validating server certificate for svn hook linux

I managed to setup a SVN (over SSL) server and TortoiseSVN client on Win. I made a Post-Commit Hook for test project. The Post-Commit will update the web dir so the App in PHP can be executed with ...
0
votes
1answer
172 views

Auto update changeset hook fails with status -1 [closed]

I am using Mercurial SCM over a LAN using a normal shared folder instead of HTTP. I'm having a problem getting the auto update hook to run. I have entered this hook as detailed in the FAQ. This ...
0
votes
1answer
223 views

Determine branch in post-update hook

I have a git (gitosis) repo where every developer have a main branch. I have a script in post-update hook that rebuild main web site and test websites for every developer on every PUSH. I want to ...
3
votes
2answers
339 views

Unix filesystem hook

I'd like to add a hook to the file system, so I can execute a process whenever a specific file is read from disk. Does *nix provide a way to create such a hook? (I have root access)
2
votes
1answer
336 views

Git Server Side Hook using C#

With subversion and VisualSVN I was able to put a .net binary file as the hook using c# and building the assembly. You just put a file called Post-Commit.exe in the hook folder and it works. With git ...
1
vote
2answers
324 views

How can I run a python script when a new user is created in Active Directory?

For some background information: we're a Windows environment using server 2008 with AD for desktop auth. We are an online retail business; our online presence and our intranet are *nix based. When we ...
2
votes
1answer
536 views

libvirt, qemu, reboot hook

Is it possible to detect that the guest VM has rebooted and perform an action using libvirt / qemu? The hooks here only support the "start" and "stop" events. I would like to detect if my VM has ...
0
votes
1answer
377 views

Subversion post commit hook checkout to website document root

We have Subversion running on our Debian development server. We have setup a post-commit hook to checkout the contents of the repository to /var/www/ourwebsite There are about 2GB worth of files and ...
5
votes
3answers
811 views

Vim - Trigger action\script on save\write?

This might be better for super user, but I figure as a tool of the trade it might be a better topic for here. I find often when editing in vim that I exit out, run some script that I am testing, and ...
0
votes
1answer
195 views

Linux (CentOS) - Is there any (feasible) way to add a file write “hook”?

I have a mod_security log parsing script to load data into a mysql database which is then accessed by our Project Management System to display recent flaggings by the rulesets for our developers. The ...
1
vote
2answers
317 views

git post-receive hook never executes

For some reason my post-received hook never executes. It's a simple two liner diagnostic script: echo "test" && touch /tmp/test. When I do git push origin master nothing happens. Does any-one ...
2
votes
3answers
2k views

Problem with Email Notifications in VisualSVN Server

I have a dedicated server running windows 2003 server and Visual SVN Server 2.0.8. I'm trying to configure it to send email notifications on commit. So I found this article on Visual SVN site. It ...
2
votes
1answer
180 views

Automatically add text on CVS Commit?

I was curious if there was a way to add a hook or something into CVS so that when you commit a text file or into CVS, it will add a certain string at the end of the file? For example, say something ...
11
votes
6answers
5k views

Git - post-receive hook with git pull “Failed to find a valid git directory”

It's very weird but when setting a git repository and creating a post-receive hook with: echo "--initializing hook--" cd ~/websites/testing echo "--prepare update--" git pull echo "--update ...
5
votes
2answers
8k views

UNIX - How to give user rights over another user and so I don't need to sudo or type password?

I have 2 users in question • git user - used for gitosis - so it's a No password user and it can be accessed only through root... • user user - where my files reside so what I would like to do is ...
2
votes
1answer
712 views

svn hook script - export just branch checked in

I've set up a repository to configure my websites, the repository is /subversion/web and at the moment I have just one website controlled in /subversion/web/mywebsite I've set up a post-commit hook ...