git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Alexey Pelykh <alexey.pelykh@gmail.com>
To: Johannes Sixt <j.sixt@viscovery.net>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: Question about submodules and absolute paths
Date: Wed, 23 May 2012 08:39:49 +0300	[thread overview]
Message-ID: <CAOmKuSqeW==dfdengmOrzaTWr+uqN9ysvm8MEHS1BB8mnYUA3Q@mail.gmail.com> (raw)
In-Reply-To: <4FBC774E.5000500@viscovery.net>

Thanks for pointing this
I haven't experienced issue with this. Maybe due to my git on Windows
is actually part of cygwin? Or maybe git status is 99% is what I do
before any operation with git :)

On Wed, May 23, 2012 at 8:36 AM, Johannes Sixt <j.sixt@viscovery.net> wrote:
>
> Am 5/22/2012 21:18, schrieb Alexey Pelykh:
> > Not on two machines, on single machine but with two OSes
> > Windows + Linux + shared 'work' partition :) So both Windows and Linux
> > use same repo clone that is stored on a 'work' partition. But due to
> > those absolute paths, it gives '/cygdrive/d/work' on windows and
> > '/media/work' on linux. Thus I have to keep 2 copies of each
> > repository that uses submodules (and that is very inconvenient :( )
>
> I think you cannot share the index file between OSes. Even though its file
> format should be portable, the contents (stat information) is not
> portable. After you boot into a different OS, you need at least a 'git
> status' call to populate the index with the stat data from the new OS.
>
> -- Hannes

      reply	other threads:[~2012-05-23  5:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAOmKuSoYP9fYORDy5twLpFh7SQ7rc6x2A=F8XjfKMqo-ErCauQ@mail.gmail.com>
2012-05-22 11:36 ` Question about submodules and absolute paths Alexey Pelykh
2012-05-22 18:27   ` Junio C Hamano
2012-05-22 19:18     ` Alexey Pelykh
2012-05-22 19:25       ` Matt Seitz (matseitz)
2012-05-22 19:29         ` Alexey Pelykh
2012-05-22 19:36           ` Matt Seitz (matseitz)
2012-05-22 20:25             ` Alexey Pelykh
2012-05-22 21:06               ` Junio C Hamano
2012-05-23  7:24                 ` Jens Lehmann
2012-05-23  7:32                   ` Alexey Pelykh
2012-05-23 20:42                     ` Jens Lehmann
2012-05-24  5:08                       ` Alexey Pelykh
2012-05-23  5:36       ` Johannes Sixt
2012-05-23  5:39         ` Alexey Pelykh [this message]

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOmKuSqeW==dfdengmOrzaTWr+uqN9ysvm8MEHS1BB8mnYUA3Q@mail.gmail.com' \
    --to=alexey.pelykh@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=j.sixt@viscovery.net \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).