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

Not firing through SublimeGit plugin for SublimeText 3 #193

Closed
geebru opened this issue Feb 7, 2014 · 5 comments
Closed

Not firing through SublimeGit plugin for SublimeText 3 #193

geebru opened this issue Feb 7, 2014 · 5 comments
Assignees

Comments

@geebru
Copy link

geebru commented Feb 7, 2014

Seems similar to other GUI client issues but upon committing with SublimeGit, lolcommits doesn't fire.

Works fine if I do everything through terminal, but not through the app plugin.

@mroth
Copy link
Member

mroth commented Apr 13, 2014

@geebru can you try the following to link lolcommits into somewhere that should be in the default path:

ln -s `which lolcommits` /usr/local/bin/lolcommits

Please let me know if that fixes things.

@elyseholladay
Copy link

edit:

Updating the path in my .git/hooks/post-commit file worked.

Run which lolcommits to see the path and then change the lolcommits capture line:

/path/to/lolcommits --capture [flags]

So my post-commit file now looks like:

    ### lolcommits hook (begin) ###
    export PATH="/usr/local/bin/ruby:/opt/local/bin:/opt/local/sbin:/usr/local/bin::/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/elyse/.rbenv/versions/2.0.0-p451/bin/ruby:$PATH"
    /Users/elyse/.rbenv/shims/lolcommits --capture --delay=2 --animate=4
    ###  lolcommits hook (end)  ###

See also #119--that issue helped.

@matthutchinson matthutchinson self-assigned this Sep 5, 2014
@matthutchinson
Copy link
Member

i'll take this issue on, I'm trying to fix up our post commit hook to take care of all of these path issues

@matthutchinson
Copy link
Member

Now fixed in gem release 0.5.5! (see the CHANGELOG for more details)

gem install lolcommits to get the latest version 👍

@matthutchinson
Copy link
Member

NOTE: After installing the latest version you'll need to lolcommits --disable and then lolcommits --enable again to fix any existing hook already set from an earlier gem install.

If lolcommits --disable fails to remove the hook, try blowing away /path/to/your/repo/.git/hooks/post-commit (or editing that file manually to clean away any existing lolcommit applied hook before trying to enable again).

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

No branches or pull requests

4 participants