Skip to content

Commit

Permalink
git: Add Tag objects to the list of supported objects for walking
Browse files Browse the repository at this point in the history
This is necessary to support pruning on Tag objects.

Signed-off-by: Chris Marchesi <[email protected]>
  • Loading branch information
vancluever committed Sep 7, 2018
1 parent 6b3f46b commit 1000bc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions object_walker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1000bc0

Please sign in to comment.