Commit adea68a8 authored by Eric Engestrom's avatar Eric Engestrom

git_sha1_gen: fix output on python3

String handling has changed on python3.

Before this patch, on python3:
	#define MESA_GIT_SHA1 "git-b'b99dcbfe'"
After:
	#define MESA_GIT_SHA1 "git-b99dcbfe"

(No change on python2, it always looked ok)

Cc: Jose Fonseca <jfonseca@vmware.com>
Fixes: b99dcbfe "build: Convert git_sha1_gen script to Python."
Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Jose Fonseca's avatarJose Fonseca <jfonseca@vmware.com>
parent f3ed1d2f
......@@ -12,7 +12,7 @@ try:
'rev-parse',
'--short=10',
'HEAD',
], stderr=open(os.devnull, 'w'))
], stderr=open(os.devnull, 'w')).decode("ascii")
except:
# don't print anything if it fails
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment