[vhffs-dev] [1041] Replaced ln with commit to avoid issues if robots aren' t running on the git

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1041
Author:   beuss
Date:     2007-10-27 20:09:29 +0000 (Sat, 27 Oct 2007)

Log Message:
-----------
Replaced ln with commit to avoid issues if robots aren't running on the git
host box.

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Robots/Git.pm


Modified: trunk/vhffs-api/src/Vhffs/Robots/Git.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Git.pm	2007-10-27 20:02:30 UTC (rev 1040)
+++ trunk/vhffs-api/src/Vhffs/Robots/Git.pm	2007-10-27 20:09:29 UTC (rev 1041)
@@ -106,7 +106,7 @@
     unlink "$dir/hooks/post-receive";
     if($git->get_ml_name !~ /^\s*$/) {
         if(! -e "$dir/hooks/post-receive") {
-            system("ln -s %VHFFS_BOTS_DIR%/misc/git_post-receive $dir/hooks/post-receive");
+            system("cp %VHFFS_BOTS_DIR%/misc/git_post-receive $dir/hooks/post-receive");
         }
         system("git-config -f $dir/config hooks.mailinglist ".$git->{ml_name});
         system("git-config -f $dir/config hooks.envelopesender $mail_from");


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/