Skip to content

Commit

Permalink
Allow git_repository to be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Oct 27, 2023
1 parent cb7ec99 commit db462c2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def sync_git_repository(git_repository = nil)
return unless name_changed? || scm_url_changed? || authentication_id_changed? || @verify_ssl_changed

git_repository ||= self.git_repository
return if git_repository.nil?

git_repository.attributes = attrs_for_sync_git_repository
end

Expand Down

0 comments on commit db462c2

Please sign in to comment.