function DrushMakeProject::removeGitDirectory

8.0.x make.project.inc DrushMakeProject::removeGitDirectory()
6.x make.project.inc DrushMakeProject::removeGitDirectory()
7.x make.project.inc DrushMakeProject::removeGitDirectory()
5.x make.project.inc DrushMakeProject::removeGitDirectory()
master make.project.inc DrushMakeProject::removeGitDirectory()

Remove the .git directory from a project.

1 call to DrushMakeProject::removeGitDirectory()
DrushMakeProject::make in commands/make/make.project.inc
Build a project.

File

commands/make/make.project.inc, line 396
Drush Make processing classes.

Class

DrushMakeProject
The base project class.

Code

function removeGitDirectory() {
  if (isset($this->download['type']) && $this->download['type'] == 'git' && file_exists($this->download_location . '/.git')) {
    drush_delete_dir($this->download_location . '/.git', TRUE);
  }
}