Skip to content

Commit

Permalink
fix issues with sparse config
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Sep 17, 2024
1 parent b85ce7b commit 59015d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git_fleximod/submodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def _add_remote(self, git):
return newremote
else:
i = 0
while "newremote" in remotes:
while newremote in remotes:
i = i + 1
newremote = f"newremote.{i:02d}"
else:
Expand Down Expand Up @@ -303,9 +303,9 @@ def sparse_checkout(self):
print(f"Error checking out {self.name:>20} at {self.fxtag}")
else:
print(f"Successfully checked out {self.name:>20} at {self.fxtag}")
rgit.config_set_value(f'submodule "{self.name}"', "active", "true")
rgit.config_set_value(f'submodule "{self.name}"', "url", self.url)
rgit.config_set_value(f'submodule "{self.name}"', "path", self.path)
rgit.config_set_value('submodule.' + self.name, "active", "true")
rgit.config_set_value('submodule.' + self.name, "url", self.url)
rgit.config_set_value('submodule.' + self.name, "path", self.path)

def update(self):
"""
Expand Down

0 comments on commit 59015d4

Please sign in to comment.