Skip to content

Commit

Permalink
Merge pull request #81 from akretion/fix-branch-rename
Browse files Browse the repository at this point in the history
fix: git remote: change url instead of rm / add
  • Loading branch information
sbidoul authored Jun 4, 2024
2 parents 4a706d7 + 14cc175 commit 63f2ca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git_aggregator/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ def _set_remote(self, name, url):
else:
logger.info('Updating remote %s <%s> -> <%s>',
name, exising_url, url)
self.log_call(['git', 'remote', 'rm', name], cwd=self.cwd)
self.log_call(['git', 'remote', 'add', name, url], cwd=self.cwd)
self.log_call(
['git', 'remote', 'set-url', name, url], cwd=self.cwd)

def _github_api_get(self, path):
url = 'https://api.github.com' + path
Expand Down

0 comments on commit 63f2ca1

Please sign in to comment.