@@ -958,7 +958,7 @@ def move(self, module_path: PathLike, configuration: bool = True, module: bool =
958
958
raise
959
959
# END handle undo rename
960
960
961
- # Auto-rename submodule if it's name was 'default', that is, the checkout directory.
961
+ # Auto-rename submodule if its name was 'default', that is, the checkout directory.
962
962
if previous_sm_path == self .name :
963
963
self .rename (module_checkout_path )
964
964
@@ -976,19 +976,19 @@ def remove(
976
976
from the .gitmodules file and the entry in the .git/config file.
977
977
978
978
:param module: If True, the checked out module we point to will be deleted as
979
- well.If that module is currently on a commit outside any branch in the
979
+ well. If that module is currently on a commit outside any branch in the
980
980
remote, or if it is ahead of its tracking branch, or if there are modified
981
- or untracked files in its working tree, then the removal will fail.
982
- In case the removal of the repository fails for these reasons, the
983
- submodule status will not have been altered.
981
+ or untracked files in its working tree, then the removal will fail. In case
982
+ the removal of the repository fails for these reasons, the submodule status
983
+ will not have been altered.
984
984
If this submodule has child modules of its own, these will be deleted prior
985
985
to touching the direct submodule.
986
986
:param force: Enforces the deletion of the module even though it contains
987
987
modifications. This basically enforces a brute-force file system based
988
988
deletion.
989
989
:param configuration: If True, the submodule is deleted from the configuration,
990
- otherwise it isn't. Although this should be enabled most of the time,
991
- this flag enables you to safely delete the repository of your submodule.
990
+ otherwise it isn't. Although this should be enabled most of the time, this
991
+ flag enables you to safely delete the repository of your submodule.
992
992
:param dry_run: If True, we will not actually do anything, but throw the errors
993
993
we would usually throw.
994
994
:return: self
0 commit comments