Skip to content

Commit

Permalink
EdkRepo: Further sync fixes
Browse files Browse the repository at this point in the history
ConfigParser does not support overwriting a gitconfig entry so we are
manually deleting it if it exists to write over it.

Signed-off-by: Kevin Sun <[email protected]>
Reviewed-by: Ashley E Desimone <[email protected]>
Signed-off-by: Ashley E Desimone <[email protected]>
  • Loading branch information
kevinsun49 authored and ashedesimone committed Nov 10, 2022
1 parent 5ed8819 commit 9db5d04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edkrepo/commands/sync_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ def __check_submodule_config(self, workspace_path, manifest, repo_sources):
section = 'includeIf "gitdir:%(prefix){}/"'.format(gitdir)
else:
section = 'includeIf "gitdir:{}/"'.format(gitdir)
if gitglobalconfig.has_section(section):
gitglobalconfig.remove_section(section)
gitglobalconfig.add_section(section)
gitglobalconfig.set(section, 'path', path)
gitglobalconfig.release()
Expand Down

0 comments on commit 9db5d04

Please sign in to comment.