mirror of
https://github.com/splitsh/lite.git
synced 2026-03-15 06:15:45 +01:00
fixed edge case
This commit is contained in:
parent
2cf28e37b8
commit
0e97a5c4aa
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue