Skip to content

GitProcessor: run git branch from a specified directory instead of working directory #1538

Open
@root-talis

Description

@root-talis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions