Community
Participate
Working Groups
cgit supports "always" for "core.logAllRefUpdates" so that "a missing reflog is automatically created for any ref", see https://git-scm.com/docs/git-config#Documentation/git-config.txt-corelogAllRefUpdates. JGit, on the other hand, seems to expect "core.logAllRefUpdates" to be a boolean value, see https://github.com/eclipse/jgit/blob/v5.5.0.201909110433-r/org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java#L174. This results in an exception like java.lang.IllegalArgumentException: Invalid boolean value: core.logallrefupdates=always when running commands like "describe" for users that have "core.logallrefupdates=always" in "~/.gitconfig".
Looks like "always" was added in C git in 2017. It isn't implemented at all in JGit. Besides handling parsing it in CoreConfig, at least ReflogWriter (honoring "always") and TagOperation (set the reflog messsage) would need changes to actually do something with the "always" value.
Gerrit change https://git.eclipse.org/r/150504 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=b87f1259d679c7af83b7fd1ab148c99c613beaf0