|
|
@ -77,6 +77,7 @@ class GitDownloader extends VcsDownloader
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function getLocalChanges($path)
|
|
|
|
public function getLocalChanges($path)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->cleanEnv();
|
|
|
|
$path = $this->normalizePath($path);
|
|
|
|
$path = $this->normalizePath($path);
|
|
|
|
if (!is_dir($path.'/.git')) {
|
|
|
|
if (!is_dir($path.'/.git')) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -95,6 +96,7 @@ class GitDownloader extends VcsDownloader
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
protected function cleanChanges($path, $update)
|
|
|
|
protected function cleanChanges($path, $update)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->cleanEnv();
|
|
|
|
$path = $this->normalizePath($path);
|
|
|
|
$path = $this->normalizePath($path);
|
|
|
|
if (!$changes = $this->getLocalChanges($path)) {
|
|
|
|
if (!$changes = $this->getLocalChanges($path)) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|