Open
Description
When running a script from cron it is very possible that the working directory will not match the script directory. In this case, instead of logging the git version, GitProcessor logs this:
fatal: not a git repository (or any of the parent directories): .git
[2021-03-10 10:26:46] channel.LEVEL: Something happened [] {"git":[]}
This happens every time something is logged. Not only this is unhelpful, but it is also annoying because analyzing such logs becomes an issue: fatal
is a keyword by which one might want to filter their logs.
It would be nice to make it possible to specify the directory in which git branch
should be run, for example via a configuration value passed to the constructor.