Skip to content

Commit 9766832

Browse files
committed
Update check method to find all includes
1 parent c16f584 commit 9766832

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

git/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,10 @@ def string_decode(v):
446446
raise e
447447

448448
def _has_includes(self):
449-
return self._merge_includes and self.has_section('include')
449+
return self._merge_includes and any(
450+
section == 'include' or section.startswith('includeIf ')
451+
for section in self.sections()
452+
)
450453

451454
def read(self):
452455
"""Reads the data stored in the files we have been initialized with. It will

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