Commit 0e35e99 Support blaming a file is the identifier is a tag

1 file Authored and Committed by pingou 3 days ago
Support blaming a file is the identifier is a tag

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>

    
 1 @@ -714,6 +714,9 @@
 2           except ValueError:
 3               commit = repo_obj[repo_obj.head.target]
 4   
 5 +     if isinstance(commit, pygit2.Tag):
 6 +         commit = commit.get_object()
 7 + 
 8       content = __get_file_in_tree(
 9           repo_obj, commit.tree, filename.split('/'), bail_on_tree=True)
10       if not content: