diff options
author | Dmitry Frank <mail@dmitryfrank.com> | 2017-11-10 19:51:34 +0200 |
---|---|---|
committer | Dmitry Frank <mail@dmitryfrank.com> | 2017-11-10 19:51:34 +0200 |
commit | de4769c8ee1fd80478deca1bd66b29b1f8c28526 (patch) | |
tree | bcadb2aff39d1160de79f7778eee5d28a297bdf7 /utils/merkletrie | |
parent | e2791ac8605432dbdc5085fc165ace2c9e487f23 (diff) | |
download | go-git-de4769c8ee1fd80478deca1bd66b29b1f8c28526.tar.gz |
Fix support for dir symlinks
Diffstat (limited to 'utils/merkletrie')
-rw-r--r-- | utils/merkletrie/filesystem/node.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/merkletrie/filesystem/node.go b/utils/merkletrie/filesystem/node.go index f763e08..42a58a3 100644 --- a/utils/merkletrie/filesystem/node.go +++ b/utils/merkletrie/filesystem/node.go @@ -77,6 +77,10 @@ func (n *node) NumChildren() (int, error) { } func (n *node) calculateChildren() error { + if !n.IsDir() { + return nil + } + if len(n.children) != 0 { return nil } |