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

Traceback when using --add-git-hook #5

Closed
langston-barrett opened this issue Jan 26, 2017 · 4 comments
Closed

Traceback when using --add-git-hook #5

langston-barrett opened this issue Jan 26, 2017 · 4 comments

Comments

@langston-barrett
Copy link

The directory I was working in was a git repository:

code/coq-typeclass-hierarchy > python -m readme2tex --add-git-hook
Traceback (most recent call last):
  File "/nix/store/p4fqqhllhyj90njg2sksz8qrgzlzs193-python-2.7.13/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/nix/store/p4fqqhllhyj90njg2sksz8qrgzlzs193-python-2.7.13/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/nix/store/qgfi4pzf9awf5axakp2f0kj4xf7r7grn-readme2tex/lib/python2.7/site-packages/readme2tex/__main__.py", line 163, in <module>
    assert os.path.exists(".git")
AssertionError
@leegao
Copy link
Owner

leegao commented Jan 26, 2017

Hey @siddharthist, thanks for the issue report. I'm a bit swamped for the next two days so I might not get a chance to look closer at these issues. Are you in the top-level directory?

@leegao
Copy link
Owner

leegao commented Jan 26, 2017

Also great to see someone else in the PL field :)

@langston-barrett
Copy link
Author

@leegao I think this was my error, I wasn't in a git repo like I thought 😓 Anyway, it's probably better to print an error message than a traceback 😄 No rush, thanks for the response!

@leegao
Copy link
Owner

leegao commented Apr 3, 2017

Totally forgot about this; this has been fixed a few PRs ago!

@leegao leegao closed this as completed Apr 3, 2017
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

No branches or pull requests

2 participants