Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljs1990 committed Jul 22, 2021
1 parent 7370c50 commit 3b7a53a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/git/lbranch_graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ func composeBranchNodes(repo *gogit.Repository) (map[string]branchNodeWrapper, e
for _, branch := range config.Branches {
// This might need to be a bit more complex but seems to work for every use case I can
// currently think of.
// ref, err := repo.Reference(plumbing.ReferenceName("/refs/heads/"+branch.Name), true)
// if err != nil {
// return nil, fmt.Errorf("Uable to get branch reference for %s: %s", branch.Name, err.Error())
// }

hash, err := RevParseRaw(branch.Name)
if err != nil {
return nil, fmt.Errorf("Uable to get branch reference for %s: %s", branch.Name, err.Error())
Expand Down

0 comments on commit 3b7a53a

Please sign in to comment.