mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
Use binary strings for compatibility with Python 3
This commit is contained in:
parent
e362538bf2
commit
2e5ad99022
1 changed files with 2 additions and 2 deletions
|
@ -741,10 +741,10 @@ install them, let us know by filing a bug!")
|
|||
|
||||
git_sha = None
|
||||
# Check if it's a bundle commit
|
||||
if git_commit_subject.startswith("Shallow version of commit "):
|
||||
if git_commit_subject.startswith(b"Shallow version of commit "):
|
||||
# This is a bundle commit
|
||||
# Get the SHA-1 from the bundle subject: "Shallow version of commit {sha1}"
|
||||
git_sha = git_commit_subject.split(' ')[-1].strip()
|
||||
git_sha = git_commit_subject.split(b' ')[-1].strip()
|
||||
# Shorten hash
|
||||
# NOTE: Partially verifies the hash, but it will still pass if it's, e.g., a tree
|
||||
git_sha = subprocess.check_output([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue