* Detecting GIT_DIR runtime
@ 2010-05-05 15:38 Mahesh Vaidya
2010-05-05 16:54 ` Tomas Carnecky
0 siblings, 1 reply; 3+ messages in thread
From: Mahesh Vaidya @ 2010-05-05 15:38 UTC (permalink / raw)
To: git
I have a tree like
/home/mvaidya/WORKSPACE/nvos/mvaidya-master-100.local/some/folder
I would like to issue come command say "git fetch" from any level of
the tree. How can I deduce path of .git folder. Reason I need it as I
some application configuration saved in .git/workspace.properties and
I need to some action before git fetch.
--
Thank you and best regards.
Mahesh Vaidya / 9740500144
http://www.twitter.com/forvaidya
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Detecting GIT_DIR runtime
2010-05-05 15:38 Detecting GIT_DIR runtime Mahesh Vaidya
@ 2010-05-05 16:54 ` Tomas Carnecky
2010-05-05 18:14 ` Jeff King
0 siblings, 1 reply; 3+ messages in thread
From: Tomas Carnecky @ 2010-05-05 16:54 UTC (permalink / raw)
To: Mahesh Vaidya; +Cc: git
On 5/5/10 5:38 PM, Mahesh Vaidya wrote:
> I have a tree like
> /home/mvaidya/WORKSPACE/nvos/mvaidya-master-100.local/some/folder
>
> I would like to issue come command say "git fetch" from any level of
> the tree. How can I deduce path of .git folder. Reason I need it as I
> some application configuration saved in .git/workspace.properties and
> I need to some action before git fetch.
>
Take a look at:
$ git rev-parse --cdup
tom
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Detecting GIT_DIR runtime
2010-05-05 16:54 ` Tomas Carnecky
@ 2010-05-05 18:14 ` Jeff King
0 siblings, 0 replies; 3+ messages in thread
From: Jeff King @ 2010-05-05 18:14 UTC (permalink / raw)
To: Tomas Carnecky; +Cc: Mahesh Vaidya, git
On Wed, May 05, 2010 at 06:54:33PM +0200, Tomas Carnecky wrote:
> On 5/5/10 5:38 PM, Mahesh Vaidya wrote:
> >I have a tree like
> >/home/mvaidya/WORKSPACE/nvos/mvaidya-master-100.local/some/folder
> >
> >I would like to issue come command say "git fetch" from any level of
> >the tree. How can I deduce path of .git folder. Reason I need it as I
> >some application configuration saved in .git/workspace.properties and
> >I need to some action before git fetch.
> >
>
> Take a look at:
> $ git rev-parse --cdup
Or even "git rev-parse --git-dir".
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-05 18:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05 15:38 Detecting GIT_DIR runtime Mahesh Vaidya
2010-05-05 16:54 ` Tomas Carnecky
2010-05-05 18:14 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).