Differential D20449 Diff 48807 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 430 Lines • ▼ Show 20 Lines | private function updateGitWorkingCopyConfiguration() { | ||||
// client warns you that it isn't sure what it should check out as an | // client warns you that it isn't sure what it should check out as an | ||||
// initial state: | // initial state: | ||||
// warning: remote HEAD refers to nonexistent ref, unable to checkout | // warning: remote HEAD refers to nonexistent ref, unable to checkout | ||||
// We can tell the client what it should check out by making "HEAD" | // We can tell the client what it should check out by making "HEAD" | ||||
// point somewhere. However: | // point somewhere. However: | ||||
// | // | ||||
// (1) If we don't set "receive.denyDelteCurrent" to "ignore" and a user | // (1) If we don't set "receive.denyDeleteCurrent" to "ignore" and a user | ||||
// tries to delete the default branch, Git raises an error and refuses. | // tries to delete the default branch, Git raises an error and refuses. | ||||
// We want to allow this; we already have sufficient protections around | // We want to allow this; we already have sufficient protections around | ||||
// dangerous changes and do not need to special case the default branch. | // dangerous changes and do not need to special case the default branch. | ||||
// | // | ||||
// (2) A repository may have a nonexistent default branch configured. | // (2) A repository may have a nonexistent default branch configured. | ||||
// For now, we just respect configuration. This will raise a warning when | // For now, we just respect configuration. This will raise a warning when | ||||
// users clone the repository. | // users clone the repository. | ||||
// | // | ||||
▲ Show 20 Lines • Show All 310 Lines • Show Last 20 Lines |