mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 18:07:43 +01:00
[ci-skip] Fix import mc-dev task
This commit is contained in:
@@ -22,6 +22,7 @@ internal fun Project.createApplyPatchesTask(
|
|||||||
// Reset or initialize subproject
|
// Reset or initialize subproject
|
||||||
logger.lifecycle(">>> Resetting subproject $name")
|
logger.lifecycle(">>> Resetting subproject $name")
|
||||||
if (projectDir.exists()) {
|
if (projectDir.exists()) {
|
||||||
|
ensureSuccess(gitCmd("fetch", "origin", dir = projectDir))
|
||||||
ensureSuccess(gitCmd("reset", "--hard", "origin/master", dir = projectDir))
|
ensureSuccess(gitCmd("reset", "--hard", "origin/master", dir = projectDir))
|
||||||
} else {
|
} else {
|
||||||
ensureSuccess(gitCmd("clone", sourceRepo.absolutePath, projectDir.absolutePath))
|
ensureSuccess(gitCmd("clone", sourceRepo.absolutePath, projectDir.absolutePath))
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ internal fun Project.createImportMCDevTask(
|
|||||||
if (lastCommitIsMCDev) {
|
if (lastCommitIsMCDev) {
|
||||||
ensureSuccess(
|
ensureSuccess(
|
||||||
gitCmd(
|
gitCmd(
|
||||||
"reset", "--hard", "origin/master",
|
"reset", "--hard", "HEAD~1",
|
||||||
dir = upstreamServer,
|
dir = upstreamServer,
|
||||||
printOut = true
|
printOut = true
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user