aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Marchesi <chrism@vancluevertech.com>2018-09-07 08:55:05 -0700
committerChris Marchesi <chrism@vancluevertech.com>2018-09-07 09:00:42 -0700
commit1000bc0ef82a87049c6f01cebacd7aa9d06824c6 (patch)
tree73ef504b8448717f095fd0b9035b9a9e79a53cd4
parent6b3f46b3da8924c058abd7159b8c1212b7c78d07 (diff)
downloadgo-git-1000bc0ef82a87049c6f01cebacd7aa9d06824c6.tar.gz
git: Add Tag objects to the list of supported objects for walking
This is necessary to support pruning on Tag objects. Signed-off-by: Chris Marchesi <chrism@vancluevertech.com>
-rw-r--r--object_walker.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/object_walker.go b/object_walker.go
index 4cbbcca..f8b19cd 100644
--- a/object_walker.go
+++ b/object_walker.go
@@ -94,6 +94,8 @@ func (p *objectWalker) walkObjectTree(hash plumbing.Hash) error {
return err
}
}
+ case *object.Tag:
+ return p.walkObjectTree(obj.Target)
default:
// Error out on unhandled object types.
return fmt.Errorf("Unknown object %X %s %T\n", obj.ID(), obj.Type(), obj)