Skip to content

Commit

Permalink
Python3 fixes in revision.py (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz authored Feb 4, 2022
1 parent 66bf27c commit 8f768c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/revision.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
if (options.input == None) :
parser.error('missing parameter -i')

print options.input
print(options.input)

options.input = options.input.replace(' ', ' ')
inputs = options.input.split(" ")
Expand Down Expand Up @@ -96,14 +96,14 @@
main_git_hash = None

for x in inputs :
print x
print(x)
# go into the root of the repo
os.chdir(orig_dir)
os.chdir(x)

# get the short hash
git_hash = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'])
git_hash = git_hash[:7]
git_hash = str(git_hash[:7])

# get the dirty flag
dirty = os.system('git diff --quiet')
Expand Down

0 comments on commit 8f768c8

Please sign in to comment.