File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
plugins/version-control-systems/git/src/main/kotlin Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ class Git(
270270 }.mapCatching { fetchResult ->
271271 // TODO: Migrate this to JGit once sparse checkout (https://bugs.eclipse.org/bugs/show_bug.cgi?id=383772) is
272272 // implemented. Also see the "reset" call below.
273- GitCommand . run (" checkout" , revision, workingDir = workingTree.getRootPath()).requireSuccess( )
273+ workingTree.runGit (" checkout" , revision)
274274
275275 // In case of a non-fixed revision (branch or tag) reset the working tree to ensure that the previously
276276 // fetched changes are applied.
@@ -294,8 +294,7 @@ class Git(
294294 " Requested revision '$revision ' not found in refs advertised by the server."
295295 }
296296
297- GitCommand .run (" reset" , " --hard" , resolvedRevision, workingDir = workingTree.getRootPath())
298- .requireSuccess()
297+ workingTree.runGit(" reset" , " --hard" , resolvedRevision)
299298 }
300299
301300 revision
You can’t perform that action at this time.
0 commit comments