Disable merge_includes in config writers by bodograumann · Pull Request #1618 · gitpython-developers/GitPython
@with_rw_repo("HEAD", bare=False) def test_set_tracking_branch_with_import(self, rwrepo): # prepare included config file included_config = osp.join(rwrepo.git_dir, "config.include") with GitConfigParser(included_config, read_only=False) as writer: writer.set_value("test", "value", "test") assert osp.exists(included_config)
with rwrepo.config_writer() as writer: writer.set_value("include", "path", included_config)
for head in rwrepo.heads: head.set_tracking_branch(None) assert head.tracking_branch() is None remote_ref = rwrepo.remotes[0].refs[0] assert head.set_tracking_branch(remote_ref) is head assert head.tracking_branch() == remote_ref head.set_tracking_branch(None) assert head.tracking_branch() is None
def test_refs(self): types_found = set() for ref in self.rorepo.refs: