Skip to content
Matthew Hutchinson edited this page Jul 17, 2015 · 10 revisions

Help! I'm getting darkened images on every commit!

Getting images like this? Your camera probably needs more time to warm up. Try using the --delay setting in your lolcommits hook or the LOLCOMMITS_DELAY env var with a number of seconds (e.g. try 2,3 or 5). Your lolcommits post-commit hook lives in /path/to/your/repo/.git/hooks/post-commit.

If you're not happy with the extra wait time, try using the --fork or LOLCOMMITS_FORK env var to perform the capture in a background process. Check our Configure Commit Capturing page for more information on these settings.

How do I customize which capture device is used on Linux?

Simply use the --device option (or LOLCOMMITS_DEVICE env var). This will be passed directly to the device argument on the mplayer command.

How do I uninstall or disable lolcommits?

Normally if you already have the gem installed, cd to your repository and simply type;

lolcommits --disable

If you don't have the gem installed, you'll need to manually remove the post-commit hook that we created. To do this, edit the file at /path/to/your/repo/.git/hooks/post-commit removing the lines for the lolcommits hook (or delete this file entirely if you have no other hooks in use).

Finally if you want to completely blow away all traces of lolcommits (:bomb::exclamation:) run the following:

lolcommits --disable
rm -r ~/.lolcommits
gem uninstall lolcommits

How can I get lolcommits to work with RVM?

For now, you'll have to open up .git/hooks/post-commit and edit it manually after enabling lolcommits for each project. Where it currently reads:

  #!/bin/sh

It should instead read:

  #!/usr/bin/env bash
  source "$HOME/.rvm/scripts/rvm" # or "/etc/rvmrc" if you have a system-wide installation
  rvm use 1.9.3-p194 # or whichever gemset you want to use

When it tries to install rmagick as a dependency, I get this error: "Perhaps you should add the directory containing `MagickCore.pc'".

Follow the instructions here as modified with the correct paths for your machine. For instance, Homebrew installed ImageMagick in /usr/local/Cellar/imagemagick/6.7.5-7/ for this author.

How do I customize which directory to save images into?

Set the environment variable LOLCOMMITS_DIR when invoking lolcommits. To do this, edit the .git/hooks/post-commit hook to look something like the following:

LOLCOMMITS_DIR=/path/to/.lolcommits lolcommits --capture

Solved Install imagemagick link to jpeg module error

To avoid this make sure you have installed Xcode 4.6.x before using HomeBrew to install ImageMagick. If you do get a message like this;

Warning: Could not link jpeg. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link jpeg'

follow these steps to resolve,

brew rm jpeg
brew install jpeg
brew link --overwrite jpeg

After that, try to install lolcommits again

[sudo] gem install lolcommits

Try the shell solution here