Changeset View
Changeset View
Standalone View
Standalone View
src/workingcopy/ArcanistGitWorkingCopy.php
<?php | <?php | ||||
final class ArcanistGitWorkingCopy | final class ArcanistGitWorkingCopy | ||||
extends ArcanistWorkingCopy { | extends ArcanistWorkingCopy { | ||||
public function getMetadataDirectory() { | public function getMetadataDirectory() { | ||||
return $this->getPath('.git'); | return $this->getPath('.git'); | ||||
} | } | ||||
protected function newWorkingCopyFromDirectories( | protected function newWorkingCopyFromDirectories( | ||||
$working_directory, | $working_directory, | ||||
$ancestor_directory) { | $ancestor_directory) { | ||||
if (!Filesystem::pathExits($ancestor_directory.'/.git')) { | if (!Filesystem::pathExists($ancestor_directory.'/.git')) { | ||||
return null; | return null; | ||||
} | } | ||||
return new self(); | return new self(); | ||||
} | } | ||||
} | } | ||||