mirror of
https://github.com/splitsh/lite.git
synced 2024-06-01 05:12:28 +02:00
fixed edge case
This commit is contained in:
parent
2cf28e37b8
commit
0e97a5c4aa
|
@ -266,6 +266,11 @@ func (s *state) treeByPath(tree *git.Tree, prefix string) (*git.Tree, error) {
|
|||
return nil, nil
|
||||
}
|
||||
|
||||
if treeEntry.Type != git.ObjectTree {
|
||||
// tree is not a tree (a directory for a gitmodule for instance), skip
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
return s.repo.LookupTree(treeEntry.Id)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue