Skip to content

Commit

Permalink
Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentMasselis committed Sep 20, 2024
1 parent a3269e1 commit ebe55e4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ internal abstract class CurrentBranch : ValueSource<String, ValueSourceParameter

override fun obtain(): String = ByteArrayOutputStream()
.also {
val gitBranch = ByteArrayOutputStream()
execOperations.exec {
commandLine("git", "branch")
standardOutput = gitBranch
}
println("git branch command:")
gitBranch.use { println(it.toString()) }
execOperations.exec {
commandLine(
"git",
Expand Down

0 comments on commit ebe55e4

Please sign in to comment.