Skip to content

Commit 7426a47

Browse files
authored
1 parent 62effc7 commit 7426a47

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

readthedocs/rtd_tests/tests/test_backend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def test_git_lsremote(self):
5959
'2.0.X',
6060
'release/2.0.0',
6161
'release/foo/bar',
62+
"with\xa0space",
6263
]
6364
for branch in branches:
6465
create_git_branch(repo_path, branch)

readthedocs/vcs_support/backends/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def lsremote(self, include_tags=True, include_branches=True):
228228
all_tags = {}
229229
light_tags = {}
230230
for line in stdout.splitlines():
231-
commit, ref = line.split()
231+
commit, ref = line.split(maxsplit=1)
232232
if ref.startswith("refs/heads/"):
233233
branch = ref.replace("refs/heads/", "", 1)
234234
branches.append(VCSVersion(self, branch, branch))

0 commit comments

Comments
 (0)