Skip to content
Snippets Groups Projects
Commit 74586dda authored by Nick Thomas's avatar Nick Thomas
Browse files

Ignore submodules for now

parent 214889b7
No related branches found
No related tags found
1 merge request!1Initial implementation of an elasticsearch indexer in Go
Pipeline #
Loading
Loading
@@ -5,6 +5,7 @@ import (
 
"gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
"gopkg.in/src-d/go-git.v4/plumbing/object"
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
)
Loading
Loading
@@ -95,6 +96,12 @@ func (r *Repo) EachFileChange(ins, mod, del FileFunc) error {
}
 
for _, change := range changes {
// FIXME(nick): submodules may need better support
// https://github.com/src-d/go-git/issues/317
if change.From.TreeEntry.Mode == filemode.Submodule || change.To.TreeEntry.Mode == filemode.Submodule {
continue
}
fromF, toF, err := change.Files()
if err != nil {
return err
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment