Update vendor git (#2765) (#2772)

This commit is contained in:
Lauris BH
2017-10-24 02:04:22 +03:00
committed by GitHub
parent 3c60121ca7
commit 4c67925531
7 changed files with 53 additions and 75 deletions

View File

@@ -7,8 +7,6 @@ package git
import (
"fmt"
"strings"
"github.com/mcuadros/go-version"
)
// BranchPrefix base dir of the branch information file store on git
@@ -56,10 +54,6 @@ func (repo *Repository) GetHEADBranch() (*Branch, error) {
// SetDefaultBranch sets default branch of repository.
func (repo *Repository) SetDefaultBranch(name string) error {
if version.Compare(gitVersion, "1.7.10", "<") {
return ErrUnsupportedVersion{"1.7.10"}
}
_, err := NewCommand("symbolic-ref", "HEAD", BranchPrefix+name).RunInDir(repo.Path)
return err
}