Skip to content

Commit

Permalink
Fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
FredM67 committed Apr 30, 2023
1 parent 006a41e commit b7cf3ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mk2_3phase_RFdatalog_temp/inject_sketch_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

def get_git_revision_short_hash() -> str:
try:
return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'],shell=True).decode('ascii').strip()
return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'],shell=True).decode('utf-8').strip()
except CalledProcessError:
return "N/A"

def get_git_current_branch() -> str:
try:
return subprocess.check_output(['git', 'branch', '--show-current'],shell=True).decode('ascii').strip()
return subprocess.check_output(['git', 'branch', '--show-current'],shell=True).decode('utf-8').strip()
except CalledProcessError:
return "N/A"

Expand Down

0 comments on commit b7cf3ee

Please sign in to comment.