Show More
@@ -606,10 +606,13 b' class GitRepository(BaseRepository):' | |||
|
606 | 606 | Tries to pull changes from external location. |
|
607 | 607 | """ |
|
608 | 608 | url = self._get_url(url) |
|
609 | cmd = ['fetch'] | |
|
610 | cmd.append(url) | |
|
611 | cmd = ' '.join(cmd) | |
|
612 | # If error occurs run_git_command raises RepositoryError already | |
|
609 | so, se = self.run_git_command('ls-remote %s' % url) | |
|
610 | refs = [] | |
|
611 | for line in (x for x in so.splitlines()): | |
|
612 | sha, ref = line.split('\t') | |
|
613 | refs.append(ref) | |
|
614 | refs = ' '.join(('+%s:%s' % (r, r) for r in refs)) | |
|
615 | cmd = '''ls-remote -h %s %s''' % (url, refs) | |
|
613 | 616 | self.run_git_command(cmd) |
|
614 | 617 | |
|
615 | 618 | @LazyProperty |
General Comments 0
You need to be logged in to leave comments.
Login now