浏览代码

#1221 Exclude git folder from the copied folders, during the compilation process

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3969 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 年之前
父节点
当前提交
0d9ba922d5
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      setup/setuputils.class.inc.php

+ 5 - 5
setup/setuputils.class.inc.php

@@ -1,5 +1,5 @@
 <?php
-// Copyright (C) 2010-2012 Combodo SARL
+// Copyright (C) 2010-2016 Combodo SARL
 //
 //   This file is part of iTop.
 //
@@ -18,7 +18,7 @@
 
 /**
  * The standardized result of any pass/fail check performed by the setup
- * @copyright   Copyright (C) 2010-2012 Combodo SARL
+ * @copyright   Copyright (C) 2010-2016 Combodo SARL
  * @license     http://opensource.org/licenses/AGPL-3.0
  */
 
@@ -609,7 +609,7 @@ class SetupUtils
 			{
 				foreach($aFiles as $sFile)
 				{
-					if ($sFile == '.' || $sFile == '..' || $sFile == '.svn')
+					if ($sFile == '.' || $sFile == '..' || $sFile == '.svn' || $sFile == '.git')
 					{
 						// Skip
 						continue;
@@ -1103,7 +1103,7 @@ EOF
 		$aFiles = scandir($sDir);
 		foreach($aFiles as $sFile)
 		{
-			if ($sFile == '.' || $sFile == '..' || $sFile == '.svn')
+			if ($sFile == '.' || $sFile == '..' || $sFile == '.svn' || $sFile == '.git')
 			{
 				// Skip
 				continue;
@@ -1229,7 +1229,7 @@ EOF
 	 * @param Hash $aResult Used for recursion 
 	 * @return hash Hash array ('added' => array(), 'removed' => array(), 'modified' => array()) 
 	 */
-	public static function CheckDirAgainstManifest($sBaseDir, $sSourceDir, $aManifest, $aExcludeNames = array('.svn'), $aResult = null)
+	public static function CheckDirAgainstManifest($sBaseDir, $sSourceDir, $aManifest, $aExcludeNames = array('.svn', '.git'), $aResult = null)
 	{
 //echo "CheckDirAgainstManifest($sBaseDir, $sSourceDir ...)\n"; 
 		if ($aResult === null)