misc fix
This commit is contained in:
parent
ab9f3bf62d
commit
ae24f02bbb
|
@ -303,9 +303,11 @@ func forceDeleteUserBranch(repo *gitpb.Repo, branch string) error {
|
|||
log.Info(err)
|
||||
return err
|
||||
}
|
||||
if err := requiresGitPush(repo, branch); err != nil {
|
||||
log.Info(err)
|
||||
return err
|
||||
if repo.Exists(filepath.Join(".git/refs/remotes/origin/", branch)) {
|
||||
if err := requiresGitPush(repo, branch); err != nil {
|
||||
log.Info(err)
|
||||
return err
|
||||
}
|
||||
}
|
||||
configSave = true
|
||||
|
||||
|
|
Loading…
Reference in New Issue