Skip to content

Commit 2a390ae

Browse files
committed
support pure tag
1 parent e092efd commit 2a390ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"time"
1111
)
1212

13-
const _VERSION = "0.2.0"
13+
const _VERSION = "0.2.1"
1414

1515
func Version() string {
1616
return _VERSION

repo_commit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ l:
4949
spacepos := bytes.IndexByte(line, ' ')
5050
reftype := line[:spacepos]
5151
switch string(reftype) {
52-
case "tree":
52+
case "tree", "object":
5353
id, err := NewIDFromString(string(line[spacepos+1:]))
5454
if err != nil {
5555
return nil, err
@@ -62,7 +62,7 @@ l:
6262
return nil, err
6363
}
6464
commit.parents = append(commit.parents, oid)
65-
case "author":
65+
case "author", "tagger":
6666
sig, err := newSignatureFromCommitline(line[spacepos+1:])
6767
if err != nil {
6868
return nil, err

0 commit comments

Comments
 (0)