@@ -158,13 +158,13 @@ func (repo *Repository) UpdateRepoFile(doer *User, opts UpdateRepoFileOptions) (
158158 }
159159 oldCommitID := opts .LastCommitID
160160 if opts .NewBranch != opts .OldBranch {
161- oldCommitID = git .EMPTY_SHA
161+ oldCommitID = git .EmptySHA
162162 }
163163 if err := CommitRepoAction (CommitRepoActionOptions {
164164 PusherName : doer .Name ,
165165 RepoOwnerID : repo .MustOwner ().ID ,
166166 RepoName : repo .Name ,
167- RefFullName : git .BRANCH_PREFIX + opts .NewBranch ,
167+ RefFullName : git .BranchPrefix + opts .NewBranch ,
168168 OldCommitID : oldCommitID ,
169169 NewCommitID : commit .ID .String (),
170170 Commits : pushCommits ,
@@ -297,7 +297,7 @@ func (repo *Repository) DeleteRepoFile(doer *User, opts DeleteRepoFileOptions) (
297297 PusherName : doer .Name ,
298298 RepoOwnerID : repo .MustOwner ().ID ,
299299 RepoName : repo .Name ,
300- RefFullName : git .BRANCH_PREFIX + opts .NewBranch ,
300+ RefFullName : git .BranchPrefix + opts .NewBranch ,
301301 OldCommitID : opts .LastCommitID ,
302302 NewCommitID : commit .ID .String (),
303303 Commits : pushCommits ,
@@ -533,7 +533,7 @@ func (repo *Repository) UploadRepoFiles(doer *User, opts UploadRepoFileOptions)
533533 PusherName : doer .Name ,
534534 RepoOwnerID : repo .MustOwner ().ID ,
535535 RepoName : repo .Name ,
536- RefFullName : git .BRANCH_PREFIX + opts .NewBranch ,
536+ RefFullName : git .BranchPrefix + opts .NewBranch ,
537537 OldCommitID : opts .LastCommitID ,
538538 NewCommitID : commit .ID .String (),
539539 Commits : pushCommits ,
0 commit comments