diff options
Diffstat (limited to 'modules/git/commit.go')
-rw-r--r-- | modules/git/commit.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/git/commit.go b/modules/git/commit.go index 8c194ef502..99fbbd0cfc 100644 --- a/modules/git/commit.go +++ b/modules/git/commit.go @@ -398,11 +398,6 @@ func (c *Commit) GetSubModule(entryname string) (*SubModule, error) { // GetBranchName gets the closest branch name (as returned by 'git name-rev --name-only') func (c *Commit) GetBranchName() (string, error) { - err := LoadGitVersion() - if err != nil { - return "", fmt.Errorf("Git version missing: %v", err) - } - args := []string{ "name-rev", } |