Skip to content

Commit c0bb1f0

Browse files
committed
mistaken merge fix
1 parent f177f16 commit c0bb1f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/repofiles/action.go

+4
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ func CommitRepoAction(optsList ...CommitRepoActionOptions) error {
185185
return fmt.Errorf("GetRepositoryByName [owner_id: %d, name: %s]: %v", opts.RepoOwnerID, opts.RepoName, err)
186186
}
187187
}
188+
repo, err = models.GetRepositoryByName(opts.RepoOwnerID, opts.RepoName)
189+
if err != nil {
190+
return fmt.Errorf("GetRepositoryByName [owner_id: %d, name: %s]: %v", opts.RepoOwnerID, opts.RepoName, err)
191+
}
188192
}
189193
refName := git.RefEndName(opts.RefFullName)
190194

0 commit comments

Comments
 (0)