Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: post-receive for web deployment

From: Sitaram Chamarty <hidden>
Date: 2016-06-15 22:52:40

On Mon, Dec 19, 2011 at 8:12 AM, Stephen Major [off-list ref] wrote:
Hello,

I am having some difficulty understanding what I am doing wrong when
working with git to deploy a website through the use of a post-receive
hook on the remote.
The most common issue I have seen in cases like this is that you need
to 'unset GIT_DIR'.  In fact, anytime you play around with running
stuff from *inside* a hook that works fine when you run it from
outside, you need to check what GIT_ variables are present.

I believe 'unset `git rev-parse --local-env-vars`' is a good idea too;
probably much simpler.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help