change branches
This commit is contained in:
parent
753cc44518
commit
5f4dc22625
|
@ -21,8 +21,8 @@ class SyncRepositoryJob < ApplicationJob
|
|||
|
||||
check_clone = system("cd #{path} && git clone #{image_url}")
|
||||
SyncLog.sync_log("========check_clone:====cd #{path} && git clone #{image_url}===================")
|
||||
SyncLog.sync_log("========gitlab_branches:#{gitlab_branches}===================")
|
||||
if check_clone
|
||||
SyncLog.sync_project_log("========gitlab_branches:#{gitlab_branches}===================")
|
||||
new_gitlab_url = "http://root:_Trustie_10010@#{gitea_main}/#{user_login}/#{identifier}.git"
|
||||
shell_remote_1 = system("cd #{path}/#{image_repo_name} && git remote set-url origin #{new_gitlab_url}")
|
||||
gitlab_branches.each do |branch|
|
||||
|
|
|
@ -18,7 +18,6 @@ class Project < ApplicationRecord
|
|||
has_many :project_trends, dependent: :destroy
|
||||
has_many :watchers, as: :watchable, dependent: :destroy
|
||||
has_many :fork_users, dependent: :destroy
|
||||
|
||||
# has_many :commits, dependent: :destroy
|
||||
|
||||
has_one :project_score, dependent: :destroy
|
||||
|
|
Loading…
Reference in New Issue