[ci-skip] Fix import mc-dev task

This commit is contained in:
jmp
2020-12-19 01:10:22 -08:00
parent 64f5f9d776
commit a541703091
2 changed files with 2 additions and 1 deletions

View File

@@ -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))

View File

@@ -48,7 +48,7 @@ internal fun Project.createImportMCDevTask(
if (lastCommitIsMCDev) {
ensureSuccess(
gitCmd(
"reset", "--hard", "origin/master",
"reset", "--hard", "HEAD~1",
dir = upstreamServer,
printOut = true
)