* Q: warning: unable to rmdir 'submodule': Directory not empty
@ 2021-12-29 12:24 Ulrich Windl
2021-12-29 12:25 ` Antw: " Ulrich Windl
0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Windl @ 2021-12-29 12:24 UTC (permalink / raw)
To: git
Hi!
I wonder whether you'd think this is a bug:
When a branch uses a submodule (named "submodule" here), and when you checkout another branch that does not (yet) have that submodule, I get an error message saying:
warning: unable to rmdir 'submodule': Directory not empty
Well obviously the directory is not empty. The point is: Is the user expected to remove submodule directories manually before switching branches?
When I tried "git checkout master --recurse-submodules" instead, the submodule directory was "mostly deleted", only leaving two object files that weren't ".gitignore"d.
(But the error message was the same)
Wouldn't a message like "... submodule directory contains untracked files; won't delete those..." be better?
Regards,
Ulrich
^ permalink raw reply [flat|nested] 2+ messages in thread
* Antw: Q: warning: unable to rmdir 'submodule': Directory not empty
2021-12-29 12:24 Q: warning: unable to rmdir 'submodule': Directory not empty Ulrich Windl
@ 2021-12-29 12:25 ` Ulrich Windl
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Windl @ 2021-12-29 12:25 UTC (permalink / raw)
To: git
Sorry, I should have mentioned: git 2.26.2 on SLES12 SP5
>>> Ulrich Windl schrieb am 29.12.2021 um 13:24 in Nachricht <61CC5390.C34 : 161 :
60728>:
> Hi!
>
> I wonder whether you'd think this is a bug:
> When a branch uses a submodule (named "submodule" here), and when you
> checkout another branch that does not (yet) have that submodule, I get an
> error message saying:
> warning: unable to rmdir 'submodule': Directory not empty
>
> Well obviously the directory is not empty. The point is: Is the user
> expected to remove submodule directories manually before switching branches?
>
> When I tried "git checkout master --recurse-submodules" instead, the
> submodule directory was "mostly deleted", only leaving two object files that
> weren't ".gitignore"d.
> (But the error message was the same)
>
> Wouldn't a message like "... submodule directory contains untracked files;
> won't delete those..." be better?
>
> Regards,
> Ulrich
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-29 12:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-29 12:24 Q: warning: unable to rmdir 'submodule': Directory not empty Ulrich Windl
2021-12-29 12:25 ` Antw: " Ulrich Windl
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).