8000 Having an issue reading the post-commit file · Issue #12 · tmacwill/asana-client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Having an issue reading the post-commit file #12

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

Open
nsthi opened this issue Jul 24, 2013 · 1 comment
Open

Having an issue reading the post-commit file #12

nsthi opened this issue Jul 24, 2013 · 1 comment

Comments

@nsthi
Copy link
nsthi commented Jul 24, 2013

When I run your script line-by-line through the console the commits go through to Asana, but when I just straight up commit it seems like there's errors with the file.

I'm getting the following error after adding echo "start" and echo "end" to the beginning and end of the post-commit file under .git/hooks:

neilsethi$ git commit -a
start
.git/hooks/post-commit: line 4: require: command not found
.git/hooks/post-commit: line 5: require: command not found
.git/hooks/post-commit: line 8: message: command not found
.git/hooks/post-commit: line 9: commit: command not found
.git/hooks/post-commit: line 10: author_name: command not found
.git/hooks/post-commit: line 11: author_email: command not found
.git/hooks/post-commit: line 12: Asana.init: command not found
.git/hooks/post-commit: line 16: syntax error near unexpected token `('
.git/hooks/post-commit: line 16: `annotations = message.scan /\[(\w+)?\s*#(\d{10,})\]/'
[DUMMY_BRANCH a7f6c9a] [#6983249164590] This won't work.
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 yo

Any ideas?

@nsthi
Copy link
Author
nsthi commented Jul 29, 2013

Resolved by running the following permissions adjustment on the post-commit file:

`chmod +x .git/hooks/post-commit``

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
0