Call Git cmd_main directly
This commit is contained in:
@@ -41,15 +41,13 @@ internal fun fetchLevel(): Level = level(
|
||||
true
|
||||
},
|
||||
validator = repoPredicate { repo ->
|
||||
repo.branches.size == 1 &&
|
||||
repo.fetchHeadCount == 2 &&
|
||||
"pull" !in repo.maintenanceActions
|
||||
repo.branches.keys == setOf("master") &&
|
||||
repo.fetchHeadCount >= 2 &&
|
||||
"origin/new_branch" in repo.fetchedBranches &&
|
||||
repo.files.none { it.name == "file1" && it.tracked }
|
||||
},
|
||||
testCases = listOf(
|
||||
levelTestCase("fetch origin", "git fetch origin"),
|
||||
levelTestCase("fetch default", "git fetch"),
|
||||
),
|
||||
negativeTestCases = listOf(
|
||||
levelTestCase("pulling does not solve fetch", "git pull"),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user