git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Kacper Kornet <kornet@camk.edu.pl>
Cc: git@vger.kernel.org
Subject: Re: GIT_WORK_TREE and GIT_DIR with git clone
Date: Sat, 26 Mar 2011 12:40:58 -0700	[thread overview]
Message-ID: <7vtyep3c1h.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20110326125818.GA2621@camk.edu.pl> (Kacper Kornet's message of "Sat, 26 Mar 2011 13:58:18 +0100")

Kacper Kornet <kornet@camk.edu.pl> writes:

> Is there a reason why git clone does not respect GIT_DIR
> variable.

Are you sure it does "not respect GIT_DIR"?  When you are running clone
locally, like that:

> GIT_WORK_TREE=repo GIT_DIR=repo/.git git clone <path>/repo.git

you have _two_ repositories that the command operates on on your system,
the one that you are cloning _from_, and the new one that you are
creating.

Which repository does your GIT_DIR talk about?

  reply	other threads:[~2011-03-26 19:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-26 12:58 GIT_WORK_TREE and GIT_DIR with git clone Kacper Kornet
2011-03-26 19:40 ` Junio C Hamano [this message]
2011-03-26 23:37   ` Kacper Kornet
  -- strict thread matches above, loose matches on Subject: below --
2014-01-20 15:59 Cosmin Apreutesei
2014-01-21 20:23 ` Junio C Hamano
2014-01-21 21:37   ` Cosmin Apreutesei

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=7vtyep3c1h.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=kornet@camk.edu.pl \
    /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 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).