From: Johannes Sixt <j.sixt@viscovery.net>
To: Alexey Pelykh <alexey.pelykh@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: Question about submodules and absolute paths
Date: Wed, 23 May 2012 07:36:14 +0200 [thread overview]
Message-ID: <4FBC774E.5000500@viscovery.net> (raw)
In-Reply-To: <CAOmKuSrmxnHKaip2X87Y0Cp=XtLAtpAwUp71QhZ5od3gbDF2sg@mail.gmail.com>
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
next prev parent reply other threads:[~2012-05-23 5:36 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 [this message]
2012-05-23 5:39 ` Alexey Pelykh
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=4FBC774E.5000500@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=alexey.pelykh@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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.