hybridgroup / GitHub-Wikifier

A pre-commit Git Hook that will generate all the Table of Contents you will ever need. Just write your content, and let it take over.
100 stars 24 forks source link

problem with loading pre-commit #8

Closed antass closed 10 years ago

antass commented 11 years ago

Hi!

Thanks for taking the initiative to build a ToC for the wiki!

After downloading the pre-commit and making it executable (using your line of code), when I try to commit, I get this:

user@host:~/Dropbox/mywiki$ git add . user@host:~/Dropbox/mywiki$ git commit -am "added pages; added wikifier" error: cannot run .git/hooks/pre-commit: No such file or directory

If I just cd into .git/hooks, I can see my pre-commit.

Any ideas?

Thanks, Ania

solojavier commented 11 years ago

Have you tried using git add . and then commit without add option: git commit -m "message"

?

solojavier commented 11 years ago

@antass are you still having the same issue?

kaezarrex commented 11 years ago

I'm having the same problem. Here is my directory structure if that helps:

.
├── 1.-Part-One
│   └── 1.1.-Introduction.md
└── Home.md

I'm on Ubuntu 12.04.2 using git version 1.7.9.5.

kaezarrex commented 11 years ago

I figured out my problem. The pre-commit hook depends on zsh, but I didn't have it installed.

antass commented 11 years ago

I have moved my wiki some place else, as I needed a private page. I just checked if zsh is installed on my Ubuntu 12.10 - it isn't, so it's possible that was the problem. I'll test it out and let you know.

MarioRicalde commented 11 years ago

Today we fixed some issues with Ubuntu + Zsh.

It was not working correctly, but now it is.