Skip to content

Commit

Permalink
Ignore .git/ directory when building pacakge.xml.
Browse files Browse the repository at this point in the history
The component root is now also the repo root, so we need to check
these in every component.
  • Loading branch information
mrubinsk committed May 10, 2017
1 parent cdb4851 commit c4d8757
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions framework/Pear/lib/Horde/Pear/Package/Type/HordeSplit.php
Expand Up @@ -58,6 +58,39 @@ public function getName()
}
}

/**
* Return the ignore handler for this package.
*
* @return Horde_Pear_Package_Contents_Ignore The ignore handler.
*/
public function getIgnore()
{
return new Horde_Pear_Package_Contents_Ignore_Composite(
array(
new Horde_Pear_Package_Contents_Ignore_Dot(),
new Horde_Pear_Package_Contents_Ignore_Symlink(),
new Horde_Pear_Package_Contents_Ignore_Patterns(
array(
'/package.xml',
'*~',
'conf.php',
'CVS/*',
'bin/.htaccess',
'composer.*',
'.horde.yml',
'.git/*'
),
$this->getRepositoryRoot()
),
new Horde_Pear_Package_Contents_Ignore_Git(
$this->getGitIgnore(),
$this->getRepositoryRoot()
),
new Horde_Pear_Package_Contents_Ignore_Composer()
)
);
}

/**
* Return the contents of the Horde .gitignore file.
*
Expand Down

0 comments on commit c4d8757

Please sign in to comment.