This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "FusionForge".
The branch, master has been updated via 7af5d7309aa697aaf08d2dfc6c732792c56bf9e3 (commit) from af27c1d3d305683d8ed42867ee751682b08eab8b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=7af5d7309aa697aaf08d2dfc6c732792c56bf9e3 commit 7af5d7309aa697aaf08d2dfc6c732792c56bf9e3 Author: Franck Villaume <franck.villa...@trivialdev.com> Date: Wed Aug 9 12:05:42 2017 +0000 scmhook: cvs commitTracker is now OK. remove hardcoded reference to an inexisting project diff --git a/src/plugins/scmhook/library/scmcvs/commitTracker.class.php b/src/plugins/scmhook/library/scmcvs/commitTracker.class.php index 53834aa..0338502 100644 --- a/src/plugins/scmhook/library/scmcvs/commitTracker.class.php +++ b/src/plugins/scmhook/library/scmcvs/commitTracker.class.php @@ -36,10 +36,8 @@ class CVSCommitTracker extends scmhook { $this->label = "scmcvs"; $this->unixname = "committracker"; $this->needcopy = 0; - // $filepath = forge_get_config('plugins_path') . '/scmhook/library/' . $this->label . '/hooks/' . $this->unixname . '/post.php'; - // $this->command = '/usr/bin/php ' . $filepath . ' "$1" "$2"'; $filepath = forge_get_config('plugins_path').'/scmhook/library/'.$this->label.'/hooks/cvs_wrapper.php'; - $this->command = 'ALL /usr/bin/php '.$filepath.' '.$this->hooktype.' progress %{sVv} $USER'; + $this->command = 'ALL /usr/bin/php '.$filepath.' '.$this->hooktype.' '.$this->group->getUnixName().' %{sVv} $USER'; } function isAvailable() { diff --git a/src/plugins/scmhook/www/committracker/newcommitcvs.php b/src/plugins/scmhook/www/committracker/newcommitcvs.php index 6d9dd4d..f785c43 100644 --- a/src/plugins/scmhook/www/committracker/newcommitcvs.php +++ b/src/plugins/scmhook/www/committracker/newcommitcvs.php @@ -26,8 +26,6 @@ * */ -$SubmittedVars = unserialize(urldecode($_POST['data'])); - require_once dirname(__FILE__)."/../../../env.inc.php"; require_once $gfcommon.'include/pre.php'; @@ -41,25 +39,6 @@ $Config = array(); $Configs = array(); $Configs = unserialize(urldecode($_POST['data'])); -/* -$data = urldecode($_POST['data']); -$i = 0; -if(is_array($SubmittedVars)) { - foreach ($SubmittedVars as $SubmittedVar) { - $Configs[$i] = array(); - $Configs[$i]['UserName'] = $SubmittedVar['UserName']; - $Configs[$i]['Repository'] = $SubmittedVar['Repository']; - $Configs[$i]['FileName'] = $SubmittedVar['FileName']; - $Configs[$i]['PrevVersion'] = $SubmittedVar['PrevVersion']; - $Configs[$i]['ActualVersion'] = $SubmittedVar['ActualVersion']; - $Configs[$i]['Log'] = $SubmittedVar['Log']; - $Configs[$i]['ArtifactNumbers'] = $SubmittedVar['ArtifactNumbers']; - $Configs[$i]['CVSDate'] = $SubmittedVar['SvnDate']; - //$Configs[$i]['TaskNumbers'] = $SubmittedVar['TaskNumbers']; - $i++; - } -} -*/ /** * Checks if the commit it's possible and parse arguments @@ -78,19 +57,6 @@ function parseConfig(&$Config) { $Result['check'] = true; $Repository = $Config['Repository']; $UserName = $Config['UserName']; - $dirpath = $Config['Directory']; - - // if($repos_path[strlen($repos_path)-1]!='/') { - // $repos_path.='/'; - // } - - - // if(fileinode($repos_path) == fileinode($repo_root)) { - // $GroupName = $Repository; // substr($Repository, 0, strpos($Repository, '/')); - // $Config['FileName'] = $Config['FileName']; - // } - - // $repo_root = $repos_path.$GroupName; $Result['group'] = group_get_object_by_name($Repository); $Result['user'] = user_get_object_by_name($UserName); ----------------------------------------------------------------------- Summary of changes: .../scmhook/library/scmcvs/commitTracker.class.php | 4 +-- .../scmhook/www/committracker/newcommitcvs.php | 34 ---------------------- 2 files changed, 1 insertion(+), 37 deletions(-) hooks/post-receive -- FusionForge _______________________________________________ Fusionforge-commits mailing list Fusionforge-commits@lists.fusionforge.org http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits