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

determine .git directory regardless of position #19

Open
alfredodeza opened this issue Oct 23, 2018 · 1 comment
Open

determine .git directory regardless of position #19

alfredodeza opened this issue Oct 23, 2018 · 1 comment
Assignees

Comments

@alfredodeza
Copy link

Otherwise it forces one to be in the top level dir:

(ceph-volume) papaya-2[ceph-3.2-rhel-patches] ..pstream/ceph/src/ceph-volume ᓆ downstream-cherry-picker https://github.com/ceph/ceph/pull/24251 1640086
WARNING: .git/hooks/prepare-commit-msg not found, downloading from Gist
Traceback (most recent call last):
  File "/Users/alfredo/.virtualenvs/ceph-volume/bin/downstream-cherry-picker", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/Users/alfredo/python/downstream-cherry-picker/bin/downstream-cherry-picker", line 7, in <module>
    main(sys.argv)
  File "/Users/alfredo/python/downstream-cherry-picker/downstream_cherry_picker/__init__.py", line 161, in main
    ensure_hook()
  File "/Users/alfredo/python/downstream-cherry-picker/downstream_cherry_picker/__init__.py", line 133, in ensure_hook
    fh = open(hook, 'w')
IOError: [Errno 2] No such file or directory: '.git/hooks/prepare-commit-msg'
@alfredodeza
Copy link
Author

I was just hit by this again :( I'll try to find a solution

@alfredodeza alfredodeza self-assigned this Sep 12, 2019
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

1 participant