mirror of
https://github.com/go-gitea/gitea.git
synced 2024-08-25 21:44:20 -04:00
bug fixed
This commit is contained in:
parent
dd6246877d
commit
bc1abb010d
@ -51,7 +51,7 @@ func GetBranches(userName, reposName string) ([]string, error) {
|
|||||||
|
|
||||||
brs := make([]string, len(refs))
|
brs := make([]string, len(refs))
|
||||||
for i, ref := range refs {
|
for i, ref := range refs {
|
||||||
brs[i] = ref.Name
|
brs[i] = ref.BranchName()
|
||||||
}
|
}
|
||||||
return brs, nil
|
return brs, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user