Create project repository only when it not exists
This commit is contained in:
parent
000a723d84
commit
39ab842bc2
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ module Github
|
|||
|
||||
def fetch_repository
|
||||
begin
|
||||
project.create_repository
|
||||
project.create_repository unless project.repository.exists?
|
||||
project.repository.add_remote('github', "https://{options.fetch(:token)}@github.com/#{repo}.git")
|
||||
project.repository.set_remote_as_mirror('github')
|
||||
project.repository.fetch_remote('github', forced: true)
|
||||
|
|
Loading…
Reference in a new issue