git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Support relative .git file in a submodule
@ 2010-01-08 22:36 Brad King
  2010-01-08 22:36 ` [PATCH 1/2] Test update-index for a gitlink to a .git file Brad King
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Brad King @ 2010-01-08 22:36 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Lars Hjemli

While experimenting with submodules I discovered that if a submodule
has a .git file "symlink" with a relative path to the real submodule
repository then it cannot be added to the superproject:

$ git init
$ mkdir sub
$ cd sub
$ git init
$ mv .git .real
$ echo 'gitdir: .real' > .git
$ echo a > a
$ git add a
$ git commit -m a
$ cd ..
$ git add sub
fatal: Not a git repository: .real

This patch series adds a test demonstrating the problem, and then
fixes it.

Brad King (2):
  Test update-index for a gitlink to a .git file
  Handle relative paths in submodule .git files

 setup.c                         |   17 +++++++++++++++++
 t/t2104-update-index-gitfile.sh |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+), 0 deletions(-)
 create mode 100755 t/t2104-update-index-gitfile.sh

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-01-09 17:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-08 22:36 [PATCH 0/2] Support relative .git file in a submodule Brad King
2010-01-08 22:36 ` [PATCH 1/2] Test update-index for a gitlink to a .git file Brad King
2010-01-08 22:36 ` [PATCH 2/2] Handle relative paths in submodule .git files Brad King
2010-01-08 23:09 ` [PATCH 0/2] Support relative .git file in a submodule Junio C Hamano
2010-01-08 23:24   ` Avery Pennarun
2010-01-09  3:36     ` [PATCH v2 " Brad King
2010-01-09 17:20       ` Junio C Hamano
2010-01-09  3:36     ` [PATCH v2 1/2] Test update-index for a gitlink to a .git file Brad King
2010-01-09  3:36     ` [PATCH v2 2/2] Handle relative paths in submodule .git files Brad King

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).