Added a comment: Issue when using flag --recurse-submodules with git-checkout and...
authoraschoise@2386473665998adccbe71286036e57d7f3ad3a58 <aschoise@web>
Mon, 18 Jan 2021 23:04:17 +0000 (23:04 +0000)
committeradmin <admin@branchable.com>
Mon, 18 Jan 2021 23:04:17 +0000 (23:04 +0000)
doc/submodules/comment_1_15a2633524fc376b6a6c4f76187e435b._comment [new file with mode: 0644]

diff --git a/doc/submodules/comment_1_15a2633524fc376b6a6c4f76187e435b._comment b/doc/submodules/comment_1_15a2633524fc376b6a6c4f76187e435b._comment
new file mode 100644 (file)
index 0000000..4498c17
--- /dev/null
@@ -0,0 +1,14 @@
+[[!comment format=mdwn
+ username="aschoise@2386473665998adccbe71286036e57d7f3ad3a58"
+ nickname="aschoise"
+ avatar="http://cdn.libravatar.org/avatar/4e92ae64165f51610395247226b6bfad"
+ subject="Issue when using flag --recurse-submodules with git-checkout and git-switch"
+ date="2021-01-18T23:04:16Z"
+ content="""
+After setting up git-annex in one of my submodules, I noticed that executing `git checkout mybranch --recurse-submodules` will cause a fatal error (see error message below) and my working copy will be left in a state somewhere in between the origin and the destination branch.  
+As a workaround, this two-step alternative seems to work fine though: `git checkout mybranch && git submodule update`.  
+Everything above applies to command `git switch` as well.  
+I use git version 2.27.0 and git-annex version 8.20200618  
+
+Error Message: **fatal: could not open 'path/to/my/submodule/.git' for writing: Is a directory**
+"""]]