Skip to content

Commit

Permalink
setup.py:get_mupdf_internal(): fix handling of <sha> arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Sep 19, 2024
1 parent 1d267fb commit 66556bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,7 @@ def get_mupdf_internal(out, location=None, sha=None, local_tgz=None):
# Show sha of checkout.
run( f'cd {local_dir} && git show --pretty=oneline|head -n 1', check=False)
if sha:
command = f'cd mupdf && git checkout {sha}'
log( f'Running: {command}')
run( f'cd mupdf && git checkout {sha}')
run( f'cd {local_dir} && git checkout {sha}')
elif '://' in location:
# Download .tgz.
local_tgz = os.path.basename( location)
Expand Down

0 comments on commit 66556bc

Please sign in to comment.