Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-06-13 16:01:37 +0300
committerSean McGivern <sean@mcgivern.me.uk>2017-06-13 16:01:37 +0300
commit0d499ce215b8ce4623349c4b00311c810f83c77c (patch)
tree2c80222c1f3b35754c5b51472b0542032f2324c3
parent44b806d0fe3f37e2739bccf6f21bb7ed8caccef3 (diff)
parentc66bcdd96cf00b9cb7b908b4eef576998a51e778 (diff)
Merge branch 'fix-github-clone-wiki' into 'master'
GitHub - Fix token interpolation when cloning wiki repository See merge request !12107
-rw-r--r--changelogs/unreleased/fix-github-clone-wiki.yml4
-rw-r--r--lib/github/import.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/changelogs/unreleased/fix-github-clone-wiki.yml b/changelogs/unreleased/fix-github-clone-wiki.yml
new file mode 100644
index 00000000000..eadd90e1390
--- /dev/null
+++ b/changelogs/unreleased/fix-github-clone-wiki.yml
@@ -0,0 +1,4 @@
+---
+title: Github - Fix token interpolation when cloning wiki repository
+merge_request:
+author:
diff --git a/lib/github/import.rb b/lib/github/import.rb
index 9c7eb965f93..b20614b3060 100644
--- a/lib/github/import.rb
+++ b/lib/github/import.rb
@@ -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?