Skip to content
Snippets Groups Projects
Commit 66685f07 authored by Kaushik Lingarkar's avatar Kaushik Lingarkar
Browse files

Use 'gitfile' in submodule checkouts

This change takes another step towards ensuring Git can understand
repo's submodules to some extent. Replace the old '.git' symlink with
gitfile[1] pointing to the bare checkout of the submodule. This is
required for Git's 'recurse submodules' opts to work with repo's
submodules as '.git' is expected to be writable by Git when recursing
over submodules.

[1] https://git-scm.com/docs/gitrepository-layout#_description

Change-Id: I52d15451768ee7bd6db289f4d2b3be5907370d42
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/446181


Tested-by: default avatarKaushik Lingarkar <kaushikl@qti.qualcomm.com>
Reviewed-by: default avatarJosip Sokcevic <sokcevic@chromium.org>
Reviewed-by: default avatarMike Frysinger <vapier@google.com>
Reviewed-by: default avatarNasser Grainawi <nasser.grainawi@oss.qualcomm.com>
parent cf9a2a2a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment