[vhffs-dev] [2198] renamed git-repo-config to git config in git post receive hook, fixed post receive hook permissions

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


Revision: 2198
Author:   gradator
Date:     2012-07-02 09:56:43 +0200 (Mon, 02 Jul 2012)
Log Message:
-----------
renamed git-repo-config to git config in git post receive hook, fixed post receive hook permissions

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Robots/Git.pm
    trunk/vhffs-robots/misc/git_post-receive

Modified: trunk/vhffs-api/src/Vhffs/Robots/Git.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Git.pm	2012-06-22 20:15:25 UTC (rev 2197)
+++ trunk/vhffs-api/src/Vhffs/Robots/Git.pm	2012-07-02 07:56:43 UTC (rev 2198)
@@ -192,6 +192,7 @@
 				}
 			}
 		}
+		chmod 0755, $dir.'/hooks/post-receive';
 
 		Vhffs::Robots::vhffs_log( $vhffs, 'Git repository '.$git->get_reponame.' commit mail set to '.$git->{ml_name} );
 		$git->add_history( 'Commit mail set to '.$git->{ml_name} );

Modified: trunk/vhffs-robots/misc/git_post-receive
===================================================================
--- trunk/vhffs-robots/misc/git_post-receive	2012-06-22 20:15:25 UTC (rev 2197)
+++ trunk/vhffs-robots/misc/git_post-receive	2012-07-02 07:56:43 UTC (rev 2198)
@@ -600,9 +600,9 @@
 	projectdesc="UNNAMED PROJECT"
 fi
 
-recipients=$(git repo-config hooks.mailinglist)
-announcerecipients=$(git repo-config hooks.announcelist)
-envelopesender=$(git-repo-config hooks.envelopesender)
+recipients=$(git config hooks.mailinglist)
+announcerecipients=$(git config hooks.announcelist)
+envelopesender=$(git config hooks.envelopesender)
 
 # --- Main loop
 # Allow dual mode: run from the command line just like the update hook, or if


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