Skip to content

Commit 833ac6e

Browse files
committed
config: FIX regression by prev commit "wrap all conf..."
+ Bug appeared as last 5 TCs (test_commit & test_stream) said: OSError: [WinError 6] The handle is invalid
1 parent 8a2f7dc commit 833ac6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: git/objects/submodule/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -993,8 +993,8 @@ def rename(self, new_name):
993993
pw.rename_section(sm_section(self.name), sm_section(new_name))
994994

995995
# .gitmodules
996-
with self.config_writer(write=True) as cw:
997-
cw.config.rename_section(sm_section(self.name), sm_section(new_name))
996+
with self.config_writer(write=True).config as cw:
997+
cw.rename_section(sm_section(self.name), sm_section(new_name))
998998

999999
self._name = new_name
10001000

0 commit comments

Comments
 (0)