aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/file.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-02-13 00:15:19 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-02-13 00:15:19 +0100
commitb18d6490aefe8509791843136530e3426d0c8200 (patch)
tree64cbc583f64483f667234833a8bf4abc7f5c0084 /plumbing/object/file.go
parentb3b6e51565dcdbf81546f1d8f0121874a4e4fce9 (diff)
downloadgo-git-b18d6490aefe8509791843136530e3426d0c8200.tar.gz
plumbing/object: allow TreeIter return SubModule entries
Diffstat (limited to 'plumbing/object/file.go')
-rw-r--r--plumbing/object/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/object/file.go b/plumbing/object/file.go
index 35e7f24..4866777 100644
--- a/plumbing/object/file.go
+++ b/plumbing/object/file.go
@@ -81,7 +81,7 @@ func (iter *FileIter) Next() (*File, error) {
return nil, err
}
- if entry.Mode.IsDir() {
+ if entry.Mode.IsDir() || entry.Mode == SubmoduleMode {
continue
}