Skip to content

Commit cdd81fe

Browse files
committed
git hook with proper env
1 parent f188122 commit cdd81fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_hooks/github.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
<?php
2-
echo `cd /src/phpcon-web && env git pull`;
2+
$gitpath = '/usr/local/bin/git';
3+
header("Content-type: text/plain");
4+
system("/usr/bin/env -i HOME=/var/www/vhosts/phpcon.org {$gitpath} pull 2>&1");
5+
echo "\nDone.\n";
6+

0 commit comments

Comments
 (0)