All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Filip Gospodinov <filip.gospodinov@monetas.net>
To: John Keeping <john@keeping.me.uk>, Jens Lehmann <Jens.Lehmann@web.de>
Cc: Filip Gospodinov <filip.gospodinov@monetas.net>, git@vger.kernel.org
Subject: Re: git submodule ignores --git-dir
Date: Mon, 14 Sep 2015 15:25:46 +0200	[thread overview]
Message-ID: <55F6CADA.9000100@monetas.net> (raw)
In-Reply-To: <20150911152807.GA17201@serenity.lan>

On 11.09.2015 17:15, Jens Lehmann wrote:
> Unfortunately trying to show git the right work tree:
>
> $ git --git-dir=$PWD/repo2/.git --work-tree=$PWD/repo2 submodule update --init
>
> Didn't work as I expected it to either:
>
> fatal: /home/Sledge/libexec/git-core/git-submodule cannot be used without a
> working tree.

Yes, that's confusing. I'm not sure how other commands use the --work-tree flag
and if having the git-submodule script `cd` into the work tree would be
acceptable. What do you think?

On 11.09.2015 17:28, John Keeping wrote:
> There's also "git -C /path/to/repo" which avoids the need for a separate
> "cd".
> 

Thank you, that works!

  reply	other threads:[~2015-09-14 13:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10 20:06 git submodule ignores --git-dir Filip Gospodinov
2015-09-11 15:15 ` Jens Lehmann
2015-09-11 15:28   ` John Keeping
2015-09-14 13:25     ` Filip Gospodinov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-09-10 20:06 Filip Gospodinov

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=55F6CADA.9000100@monetas.net \
    --to=filip.gospodinov@monetas.net \
    --cc=Jens.Lehmann@web.de \
    --cc=git@vger.kernel.org \
    --cc=john@keeping.me.uk \
    /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.