Skip to content

Commit 6ee7586

Browse files
committed
test temp
1 parent 672eb10 commit 6ee7586

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/git/repo_commit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ import (
1818

1919
// GetBranchCommitID returns last commit ID string of given branch.
2020
func (repo *Repository) GetBranchCommitID(name string) (string, error) {
21-
return repo.GetRefCommitIDNew(BranchPrefix + name)
21+
return repo.GetRefCommitIDOld(BranchPrefix + name)
2222
}
2323

2424
// GetTagCommitID returns last commit ID string of given tag.
2525
func (repo *Repository) GetTagCommitID(name string) (string, error) {
26-
return repo.GetRefCommitIDNew(TagPrefix + name)
26+
return repo.GetRefCommitIDOld(TagPrefix + name)
2727
}
2828

2929
// GetCommit returns commit object of by ID string.

modules/git/repo_tree_nogogit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (repo *Repository) GetTree(idStr string) (*Tree, error) {
8888
return nil, err
8989
}
9090
if len(idStr) != objectFormat.FullLength() {
91-
res, err := repo.GetRefCommitIDNew(idStr)
91+
res, err := repo.GetRefCommitIDOld(idStr)
9292
if err != nil {
9393
return nil, err
9494
}

0 commit comments

Comments
 (0)