When useConsoleForROGit is true, the value of the gitHeadCommitDate key is surrounded by a pair of double quotes. When useConsoleForROGit is false, it is not.
Expected behavior
useConsoleForROGit is not wrapped in quotes, regardless of the value of useConsoleForROGit.
Actual behavior
useConsoleForROGit is wrapped in quotes when useConsoleForROGit is true, but not when useConsoleForROGit is false.
Example
import com.github.sbt.git.SbtGit.GitKeys.useConsoleForROGit
lazy val echoGit = taskKey[Unit]("echoGit")
echoGit := println(git.gitHeadCommitDate.value)
ThisBuild / useConsoleForROGit := true
With useConsoleForROGit := true:
$ sbt echoGit
Some("2026-06-01T17:23:26-05:00")
With useConsoleForROGit := false:
$ sbt echoGit
Some(2026-06-01T17:23:26-05:00)
P.S.
I checked some of the other values in com.github.sbt.git.SbtGit.GitKeys, and the one other that I noticed that was meaningfully different is gitHeadMessage, which had an extra newline at the end when useConsoleForROGit is true.
When
useConsoleForROGitis true, the value of thegitHeadCommitDatekey is surrounded by a pair of double quotes. WhenuseConsoleForROGitis false, it is not.Expected behavior
useConsoleForROGitis not wrapped in quotes, regardless of the value ofuseConsoleForROGit.Actual behavior
useConsoleForROGitis wrapped in quotes whenuseConsoleForROGitis true, but not whenuseConsoleForROGitis false.Example
With
useConsoleForROGit := true:With
useConsoleForROGit := false:P.S.
I checked some of the other values in
com.github.sbt.git.SbtGit.GitKeys, and the one other that I noticed that was meaningfully different isgitHeadMessage, which had an extra newline at the end whenuseConsoleForROGitistrue.