parent
1aeeaa8e89
commit
f0f48e0fff
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ type fileUpdate struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getDefaultBranchSha(repo *Repository) (string, error) {
|
func getDefaultBranchSha(repo *Repository) (string, error) {
|
||||||
stdout, err := git.NewCommand("show-ref", "-s", repo.DefaultBranch).RunInDir(repo.RepoPath())
|
stdout, err := git.NewCommand("show-ref", "-s", git.BranchPrefix+repo.DefaultBranch).RunInDir(repo.RepoPath())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue