From: Junio C Hamano <gitster@pobox.com>
To: "Josh England" <jjengla@sandia.gov>
Cc: "Git Mailing List" <git@vger.kernel.org>
Subject: Re: how to access working tree from .git dir?
Date: Fri, 07 Sep 2007 13:43:09 -0700 [thread overview]
Message-ID: <7v642m436q.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <1189120800.6203.23.camel@beauty> (Josh England's message of "Thu, 06 Sep 2007 17:20:00 -0600")
"Josh England" <jjengla@sandia.gov> writes:
> In messsing around with hooks, I've discovered that not all hooks are
> run in the same environment. In particular, the current working
> directory in the post-receive hook (maybe others as well) is the GIT_DIR
> (.git) directory, instead of the root of the working tree (as in
> pre-commit).
It is not even "instead of"; that's the only sane thing to do
for post-receive, which is in response to git-push and usually
used for a bare repository, i.e. without any work tree.
next prev parent reply other threads:[~2007-09-07 20:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-06 23:20 how to access working tree from .git dir? Josh England
2007-09-07 20:43 ` Junio C Hamano [this message]
2007-09-07 21:27 ` Josh England
2007-09-07 21:44 ` Junio C Hamano
2007-09-07 22:11 ` Josh England
2007-09-07 22:12 ` Junio C Hamano
2007-09-07 22:34 ` Josh England
2007-09-07 23:42 ` Junio C Hamano
2007-09-08 1:02 ` Josh England
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v642m436q.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jjengla@sandia.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.