Support python versions before 3.7
@@ -206,7 +206,7 @@ class GitRepoProvider(RepoProvider):
except ValueError:
# The ref is a head/tag and we resolve it using `git ls-remote`
command = ["git", "ls-remote", self.repo, self.unresolved_ref]
- result = subprocess.run(command, text=True, stdout=subprocess.PIPE)
+ result = subprocess.run(command, universal_newlines=True, stdout=subprocess.PIPE)
if result.returncode:
raise RuntimeError("Unable to run git ls-remote to get the `resolved_ref`")
if not result.stdout:
