1
0
Fork 0

Merge remote-tracking branch 'joelwurtz/patch-1'

pull/4616/head
Jordi Boggiano 2015-11-14 13:29:24 +00:00
commit f0a0ce5e98
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ class PathRepository extends ArrayRepository
}
if (is_dir($path.'/.git') && 0 === $this->process->execute('git log -n1 --pretty=%H', $output, $path)) {
$package['dist']['reference'] = trim($output);
} else {
$package['dist']['reference'] = sha1($json);
}
$package = $this->loader->load($package);