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

guet cannot find git repo if not called from project root #29

Closed
chiptopher opened this issue Jan 16, 2020 · 0 comments
Closed

guet cannot find git repo if not called from project root #29

chiptopher opened this issue Jan 16, 2020 · 0 comments
Labels
bug Something isn't working ready to deploy

Comments

@chiptopher
Copy link
Owner

Bug report

In a situation where a guet hook is called in a way that the current working directory isn't the root of the project, it will fail to add the Co-Authored by messages to the commit.

Actual behavior?

Co-Authored by is not being added when the script is ran outside of the root directory.

Expected behavior?

guet should be able to walk up the directory graph until until it finds the .git folder. For example:

project/
   .git/
   ui/
      --> running guet here

Running guet from the ui folder should still be able to find the .git folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready to deploy
Projects
None yet
Development

No branches or pull requests

1 participant