aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/treenoder.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2024-03-10 07:24:38 +0000
committerGitHub <noreply@github.com>2024-03-10 07:24:38 +0000
commitca05e2c4d8cb1801d3a8c12773bac206774871a3 (patch)
treef786702c615d0a096750246e1156bd0b91a39fca /plumbing/object/treenoder.go
parentf3113d2e83ca99face9285a117cb6d93951a7406 (diff)
parentb274b225bf92f086d8e59d023ed436e97ed14062 (diff)
downloadgo-git-ca05e2c4d8cb1801d3a8c12773bac206774871a3.tar.gz
Merge pull request #1046 from onee-only/optimize-commit-worker-path
plumbing: object, Optimize logging with file.
Diffstat (limited to 'plumbing/object/treenoder.go')
-rw-r--r--plumbing/object/treenoder.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plumbing/object/treenoder.go b/plumbing/object/treenoder.go
index 6e7b334..2adb645 100644
--- a/plumbing/object/treenoder.go
+++ b/plumbing/object/treenoder.go
@@ -88,7 +88,9 @@ func (t *treeNoder) Children() ([]noder.Noder, error) {
}
}
- return transformChildren(parent)
+ var err error
+ t.children, err = transformChildren(parent)
+ return t.children, err
}
// Returns the children of a tree as treenoders.