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

Git fatal message upon import. #12

Closed
jewfro-cuban opened this issue Apr 27, 2019 · 3 comments
Closed

Git fatal message upon import. #12

jewfro-cuban opened this issue Apr 27, 2019 · 3 comments

Comments

@jewfro-cuban
Copy link

Getting the following message upon importing:

fatal: Not a git repository (or any of the parent directories): .git

Started ~ a month ago.

@KelSolaar
Copy link
Member

@jewfro-cuban : Thanks! This is hopefully not affecting the package or import itself as all the exceptions are caught where this happens. I will swallow the error message though as they are annoying and should not happen.

@KelSolaar KelSolaar changed the title Git fatal message Git fatal message upon import. Apr 27, 2019
@KelSolaar
Copy link
Member

So for the time being, if it bothers you and until I release a new version you can replace this line:

        ['git', 'describe'], cwd=os.path.dirname(__file__)).strip()

to

        ['git', 'describe'], cwd=os.path.dirname(__file__), stderr=subprocess.STDOUT).strip()

It should swallow any error in that block.

@jewfro-cuban
Copy link
Author

Great, Thanks.

KelSolaar added a commit that referenced this issue Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants