Skip to content

Commit 63f2ca1

Browse files
authored
Merge pull request #81 from akretion/fix-branch-rename
fix: git remote: change url instead of rm / add
2 parents 4a706d7 + 14cc175 commit 63f2ca1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git_aggregator/repo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ def _set_remote(self, name, url):
350350
else:
351351
logger.info('Updating remote %s <%s> -> <%s>',
352352
name, exising_url, url)
353-
self.log_call(['git', 'remote', 'rm', name], cwd=self.cwd)
354-
self.log_call(['git', 'remote', 'add', name, url], cwd=self.cwd)
353+
self.log_call(
354+
['git', 'remote', 'set-url', name, url], cwd=self.cwd)
355355

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

0 commit comments

Comments
 (0)