git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Gelonida N <gelonida@gmail.com>
To: git@vger.kernel.org
Subject: How to properly rename a repository with submodules
Date: Sun, 20 May 2012 20:19:31 +0200	[thread overview]
Message-ID: <jpbcjj$ho$1@dough.gmane.org> (raw)

Hi,

Today I noticed to my surprise, that a repository with submodules 
contains absolute paths.in the .git file of each sub module.

This is kind of surprising to me and seems to make it absolutely 
impossible to have a non bare git repository on a memory stick.

It also seems to make it impossible to rename a working repository after 
cloning.

So I have three questions.

1.) Is there any way to force git to use relative path names, such, that 
this issue just disappears.

2,) Is there any existing script, that allows me to move a git 
repository to another location without breaking it's sub modules.

3.) Why do these path names have to be absolute? Is this for performance 
reasons? path names relative to the location of the .git file seem to be 
much more flexible / portable.


Thanks in advance for your answers

             reply	other threads:[~2012-05-20 18:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-20 18:19 Gelonida N [this message]
2012-05-20 18:49 ` How to properly rename a repository with submodules Gelonida N

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='jpbcjj$ho$1@dough.gmane.org' \
    --to=gelonida@gmail.com \
    --cc=git@vger.kernel.org \
    /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).