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

Root repository denied to install github hook #32

Open
wjn opened this issue Jan 13, 2015 · 2 comments
Open

Root repository denied to install github hook #32

wjn opened this issue Jan 13, 2015 · 2 comments

Comments

@wjn
Copy link

wjn commented Jan 13, 2015

    sprintly --install-hook
    ERROR:__main__:Fatal Error: 'This command can only be run from the root of a git repository.'
    Traceback (most recent call last):
      File "/usr/local/bin/sprintly", line 136, in run
        self.installHook()
      File "/usr/local/bin/sprintly", line 590, in installHook
        raise SprintlyException('This command can only be run from the root of a git repository.')
    SprintlyException: 'This command can only be run from the root of a git repository.'
    Program exiting.

I'm in the repo's root dir. This error is being generated. Would like to use the hook but don't know how to go forward.

@F1LT3R
Copy link
Contributor

F1LT3R commented Mar 16, 2015

Probably your hooks directory has been deleted.
Perhaps it is part of the way you have your repo configured. (Deploy hooks, etc)

From your repo root try:

mkdir .git/hooks
sprintly --install-hook

@justinabrahms
Copy link
Contributor

Alternatively, can you provide the output of tree in your repo root? Specifically interested in the .git repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants