Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 1000bc0

Browse files
committed
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>
1 parent 6b3f46b commit 1000bc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

object_walker.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ func (p *objectWalker) walkObjectTree(hash plumbing.Hash) error {
9494
return err
9595
}
9696
}
97+
case *object.Tag:
98+
return p.walkObjectTree(obj.Target)
9799
default:
98100
// Error out on unhandled object types.
99101
return fmt.Errorf("Unknown object %X %s %T\n", obj.ID(), obj.Type(), obj)

0 commit comments

Comments
 (0)