We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f24be commit 6eb3c05Copy full SHA for 6eb3c05
services/repository/branch.go
@@ -35,7 +35,7 @@ func CreateNewBranch(doer *user_model.User, repo *repo_model.Repository, oldBran
35
36
if err := git.Push(git.DefaultContext, repo.RepoPath(), git.PushOptions{
37
Remote: repo.RepoPath(),
38
- Branch: fmt.Sprintf("%s:%s%s", oldBranchName, git.BranchPrefix, branchName),
+ Branch: fmt.Sprintf("%s%s:%s%s", git.BranchPrefix, oldBranchName, git.BranchPrefix, branchName),
39
Env: models.PushingEnvironment(doer, repo),
40
}); err != nil {
41
if git.IsErrPushOutOfDate(err) || git.IsErrPushRejected(err) {
0 commit comments