aboutsummaryrefslogtreecommitdiffstats
path: root/object_walker.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-09-10 13:04:42 +0200
committerGitHub <noreply@github.com>2018-09-10 13:04:42 +0200
commit38060c9c17a8485c03873d06b465b65dbe6bd325 (patch)
treef0273e3453020498defff396e3d62e9f33436468 /object_walker.go
parenta2d62f58ea626bb9f41de6431f6f18ca92cf78a0 (diff)
parent9ce4eeab99708a2ac35124585103f9e4a04126df (diff)
downloadgo-git-38060c9c17a8485c03873d06b465b65dbe6bd325.tar.gz
Merge pull request #928 from vancluever/f-add-tagging-support
git: Add tagging support
Diffstat (limited to 'object_walker.go')
-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)