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)
|
log.Info(err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := requiresGitPush(repo, branch); err != nil {
|
if repo.Exists(filepath.Join(".git/refs/remotes/origin/", branch)) {
|
||||||
log.Info(err)
|
if err := requiresGitPush(repo, branch); err != nil {
|
||||||
return err
|
log.Info(err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
configSave = true
|
configSave = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue