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

git/objects/submodule/base.py

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy