Skip to content

Commit

Permalink
Correctly obtain git.cmd.Git
Browse files Browse the repository at this point in the history
  • Loading branch information
zcqian committed Sep 14, 2021
1 parent 49c8ed2 commit 17d2a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biothings/utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def get_source_code_info(src_file):
logging.exception("Can't find a github repository for file '%s'" % src_file)
return None
try:
gcmd = Git(repo)
gcmd = repo.git
hash = gcmd.rev_list(-1, repo.active_branch, abs_src_file)
rel_src_file = abs_src_file.replace(repo.working_dir, "").strip("/")
if not hash:
Expand Down

0 comments on commit 17d2a42

Please sign in to comment.