git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git Hooks

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 16, 2009, 23:31 UTC
Message-ID
<7vzl8uv54c.fsf@alter.siamese.dyndns.org>
In-Reply-To
<25482688.post@talk.nabble.com>
daicoden <daicoden@copypastel.com> writes:
Show 6 quoted lines
> cd /var/www/blog
> thin -s 2 -C config.yml -R config.ru stop
> cd .git
> git pull origin master
> cd ..
> thin -s 2 -C config.yml -R config.ru start 

Unless you have a strange configuration in which you have work tree files inside a .git directory of another repository, running "git pull" after going into .git directory does not make any sense.

Perhaps add this
	unset GIT_DIR
at the very beginning of your original script would make it work better?
Previous: daicoden
Message 2 of 2 in “Git Hooks”
  1. daicodenSep 16, 2009
  2. Junio C HamanoSep 16, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.