Skip to content

Commit

Permalink
Merge pull request #8 from necrophonic/fix-packed-refs
Browse files Browse the repository at this point in the history
Fix #3 and #4 incomplete and packed refs
  • Loading branch information
bketelsen authored Nov 7, 2017
2 parents 1863357 + 3a96e14 commit 606d2b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"fmt"
"os/exec"

"code.gitea.io/git"
"github.com/blang/semver"
"github.com/gogits/git"
"github.com/pkg/errors"
Expand Down Expand Up @@ -128,7 +129,7 @@ func init() {
func tag(repo *git.Repository, major, minor, patch uint64) error {

fmt.Printf("Creating v%d.%d.%d\n", major, minor, patch)
id, err := repo.GetCommitIdOfBranch("master")
id, err := repo.GetBranchCommitID("master")
if err != nil {
return errors.Wrap(err, "Unable to get commit ID of branch ")
}
Expand Down

0 comments on commit 606d2b3

Please sign in to comment.