Merge branch 'fix-github-clone-wiki' into 'master'

GitHub - Fix token interpolation when cloning wiki repository

See merge request !12107
This commit is contained in:
Sean McGivern 2017-06-13 13:01:37 +00:00
commit 0d499ce215
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
---
title: Github - Fix token interpolation when cloning wiki repository
merge_request:
author:

View File

@ -92,7 +92,7 @@ module Github
end
def fetch_wiki_repository
wiki_url = "https://{options.fetch(:token)}@github.com/#{repo}.wiki.git"
wiki_url = "https://#{options.fetch(:token)}@github.com/#{repo}.wiki.git"
wiki_path = "#{project.path_with_namespace}.wiki"
unless project.wiki.repository_exists?