Skip to content

git: Decode branch names and sha1

Darryl Green requested to merge github/fork/derkling/fix_git_symref into next

Created by: derkling

In find_shortest_symref() the subprocess command we use to get the list of git branches returns a byte string. We then split this into byte string 'name' and 'sha1' where this last will never match the SHA1 parameter passed in as a string.

Fix it be always decoding the strings we get as output of the subprocess command.

Signed-off-by: Patrick Bellasi patrick.bellasi@arm.com

Merge request reports