Call Git cmd_main directly
This commit is contained in:
@@ -38,7 +38,10 @@ internal fun pushBranchLevel(): Level = level(
|
||||
checkout("master")
|
||||
true
|
||||
},
|
||||
validator = repoPredicate { repo -> "origin/test_branch" in repo.pushedBranches && "origin/master" !in repo.pushedBranches && "origin/other_branch" !in repo.pushedBranches },
|
||||
validator = repoPredicate { repo ->
|
||||
"origin/test_branch" in repo.pushedBranches &&
|
||||
"origin/other_branch" !in repo.pushedBranches
|
||||
},
|
||||
testCases = listOf(
|
||||
levelTestCase("push named branch", "git push origin test_branch"),
|
||||
levelTestCase("push current branch refspec", "git push origin test_branch:test_branch"),
|
||||
|
||||
Reference in New Issue
Block a user