mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37: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
|
||||
logger.lifecycle(">>> Resetting subproject $name")
|
||||
if (projectDir.exists()) {
|
||||
ensureSuccess(gitCmd("fetch", "origin", dir = projectDir))
|
||||
ensureSuccess(gitCmd("reset", "--hard", "origin/master", dir = projectDir))
|
||||
} else {
|
||||
ensureSuccess(gitCmd("clone", sourceRepo.absolutePath, projectDir.absolutePath))
|
||||
|
||||
@@ -48,7 +48,7 @@ internal fun Project.createImportMCDevTask(
|
||||
if (lastCommitIsMCDev) {
|
||||
ensureSuccess(
|
||||
gitCmd(
|
||||
"reset", "--hard", "origin/master",
|
||||
"reset", "--hard", "HEAD~1",
|
||||
dir = upstreamServer,
|
||||
printOut = true
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user