aboutsummaryrefslogtreecommitdiff
path: root/fetch_externals.py
diff options
context:
space:
mode:
Diffstat (limited to 'fetch_externals.py')
-rwxr-xr-xfetch_externals.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch_externals.py b/fetch_externals.py
index 8121808..0be9cc3 100755
--- a/fetch_externals.py
+++ b/fetch_externals.py
@@ -115,7 +115,7 @@ class Git(object):
def __get_remotes(self):
remotes = {}
- for remote in check_output(['git', 'remote'], cwd=self.absolutepath).decode('utf-8').strip().split('\n'):
+ for remote in check_output(['git', 'remote'], cwd=self.absolutepath).decode('utf-8').splitlines():
fetch = check_output(['git', 'remote', 'get-url', remote], cwd=self.absolutepath).decode('utf-8').strip()
push = check_output(['git', 'remote', 'get-url', '--push', remote], cwd=self.absolutepath).decode('utf-8').strip()
remotes[remote] = { 'fetch': fetch, 'push': push }