Skip to content

Commit

Permalink
Use rev_parse()
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnks committed Dec 28, 2023
1 parent 58aba37 commit 9003e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devel_doc/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _data_file(self, number):

def _link_file(self, commit):
if len(commit) < SHA1_LEN:
commit = shell('git rev-parse {}'.format(commit))
commit = rev_parse(commit, False)
return '{}/{}/{}'.format(self.commit_dir, commit[:2], commit[2:])

def _fetch(self, commit):
Expand Down

0 comments on commit 9003e9a

Please sign in to comment.