mirror of
https://github.com/godotengine/godot
synced 2024-09-05 11:28:29 +00:00
Fix emoji branch compilation error
This commit is contained in:
parent
f4c17da6f5
commit
2407562366
|
@ -92,7 +92,7 @@ def update_version(module_version_string=""):
|
|||
gitfolder = module_folder[8:]
|
||||
|
||||
if os.path.isfile(os.path.join(gitfolder, "HEAD")):
|
||||
head = open(os.path.join(gitfolder, "HEAD"), "r").readline().strip()
|
||||
head = open(os.path.join(gitfolder, "HEAD"), "r", encoding="utf8").readline().strip()
|
||||
if head.startswith("ref: "):
|
||||
head = os.path.join(gitfolder, head[5:])
|
||||
if os.path.isfile(head):
|
||||
|
|
Loading…
Reference in a new issue