Differential D20893 Diff 49803 src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
Show First 20 Lines • Show All 415 Lines • ▼ Show 20 Lines | private function executeGitUpdate() { | ||||
$fetch_rules = $this->getGitFetchRules($repository); | $fetch_rules = $this->getGitFetchRules($repository); | ||||
// For very old non-bare working copies, we need to use "--update-head-ok" | // For very old non-bare working copies, we need to use "--update-head-ok" | ||||
// to tell Git that it is allowed to overwrite whatever is currently | // to tell Git that it is allowed to overwrite whatever is currently | ||||
// checked out. See T13280. | // checked out. See T13280. | ||||
$future = $repository->getRemoteCommandFuture( | $future = $repository->getRemoteCommandFuture( | ||||
'fetch --update-head-ok -- %P %Ls', | 'fetch --no-tags --update-head-ok -- %P %Ls', | ||||
$repository->getRemoteURIEnvelope(), | $repository->getRemoteURIEnvelope(), | ||||
$fetch_rules); | $fetch_rules); | ||||
$future | $future | ||||
->setCWD($path) | ->setCWD($path) | ||||
->resolvex(); | ->resolvex(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 390 Lines • Show Last 20 Lines |