freerange/recap — Issue #27: git fetch fails on cap deploy
Author: floehopper
Created: 2012-02-29 23:24:04+00:00
State: open

I'm seeing the following error locally when running `cap deploy` on freerange/site :-

failed: "sh -c 'cd /home/freerange/apps/gofreerange.com && umask 002 && sg freerange -c \"git fetch\"'" on gofreerange.com

When I change into that directory on the server and execute the failing command, I see the following output :-

jamesmead@li152-44:/home/freerange/apps/gofreerange.com$ sg freerange -c "git fetch"
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

Presumably it's trying to fetch the code as me (`jamesmead`) and not as `freerange`?

Any ideas?