From e856ae0f35618b37f0441b4057417f7bca74b33c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 20 Apr 2023 14:21:22 -0400 Subject: [PATCH] idea --- ..._fce2467a0442f98194fa11caffa466ad._comment | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 doc/bugs/Git_checkout_fails_using_--recurse-submodules/comment_3_fce2467a0442f98194fa11caffa466ad._comment diff --git a/doc/bugs/Git_checkout_fails_using_--recurse-submodules/comment_3_fce2467a0442f98194fa11caffa466ad._comment b/doc/bugs/Git_checkout_fails_using_--recurse-submodules/comment_3_fce2467a0442f98194fa11caffa466ad._comment new file mode 100644 index 0000000000..572805244d --- /dev/null +++ b/doc/bugs/Git_checkout_fails_using_--recurse-submodules/comment_3_fce2467a0442f98194fa11caffa466ad._comment @@ -0,0 +1,19 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2023-04-20T18:13:04Z" + content=""" +Well, there is `git-annex adjust --fix` now. So in theory, git-annex in a +submodule could leave .git a file and enter an adjusted fixed branch, and +when generating that branch, make the annex object symlinks point to +`../.git/modules/sub/` + +Then git would commit the ref of the adjusted branch as the submodule. +So checking it out elsewhere would need to either replicate that same +commit sha with `git-annex adjust --fix` again (doable but tricky), +or that ref would need to be pushed. + +The user would also need to use `git-annex sync` in the submodule +after making changes if they want to propatate them out of the adjusted +branch to the main branch. +"""]] -- 2.30.2