Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix directory for Git Event Handler. (EventHandlerError: fatal: Not a git repository (or any of the parent directories): .git) #606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

llange
Copy link

@llange llange commented Oct 17, 2016

When you enable Git support in Adagios, AND are using nonstandard
directory base (e.g. /etc/shinken instead of /etc/nagios), it
is not possible to create / edit configuration.
More specifically, each time Git Handler wants to commit something,
the Web UI fails with the following error:
EventHandlerError: fatal: Not a git repository (or any of the parent directories): .git

Root cause seems to be that the directory with which Git Handler
is configured is not the proper one, but a default one ( /etc/nagios ),
which is not under git control.

This (simple) fix aims to correct this.

… git repository (or any of the parent directories): .git)

When you enable Git support in Adagios, AND are using nonstandard
directory base (e.g. /etc/shinken instead of /etc/nagios), it
is not possible to create / edit configuration.
More specifically, each time Git Handler wants to commit something,
the Web UI fails with the following error:
EventHandlerError: fatal: Not a git repository (or any of the parent directories): .git

Root cause seems to be that the directory with which Git Handler
is configured is not the proper one, but a default one ( /etc/nagios ),
which is not under git control.

This (simple) fix aims to correct this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant