aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/repo_branch.go
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-10-23 16:36:14 +0300
committerGitHub <noreply@github.com>2017-10-23 16:36:14 +0300
commit9ba789891165c816741254e73ced26d401358da7 (patch)
tree60ab5091a6a3a57d790399d725006e5619a641de /vendor/code.gitea.io/git/repo_branch.go
parent81d1e54a49cc61e64608ff2aee055110c7e4f811 (diff)
downloadgitea-9ba789891165c816741254e73ced26d401358da7.tar.gz
gitea-9ba789891165c816741254e73ced26d401358da7.zip
Update vendor git (#2765)
Diffstat (limited to 'vendor/code.gitea.io/git/repo_branch.go')
-rw-r--r--vendor/code.gitea.io/git/repo_branch.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/vendor/code.gitea.io/git/repo_branch.go b/vendor/code.gitea.io/git/repo_branch.go
index 2cd9659316..3b50eece14 100644
--- a/vendor/code.gitea.io/git/repo_branch.go
+++ b/vendor/code.gitea.io/git/repo_branch.go
@@ -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
}