Example repo URL - see Github issue 516
This commit is contained in:
parent
f5b6df5a57
commit
bcbc95b142
4
Rakefile
4
Rakefile
@ -299,7 +299,9 @@ task :setup_github_pages, :repo do |t, args|
|
|||||||
if args.repo
|
if args.repo
|
||||||
repo_url = args.repo
|
repo_url = args.repo
|
||||||
else
|
else
|
||||||
repo_url = get_stdin("Enter the read/write url for your repository: ")
|
puts "Enter the read/write url for your repository"
|
||||||
|
puts "(For example, 'git@github.com:your_username/your_username.github.com)"
|
||||||
|
repo_url = get_stdin("Repository url: ")
|
||||||
end
|
end
|
||||||
user = repo_url.match(/:([^\/]+)/)[1]
|
user = repo_url.match(/:([^\/]+)/)[1]
|
||||||
branch = (repo_url.match(/\/[\w-]+.github.com/).nil?) ? 'gh-pages' : 'master'
|
branch = (repo_url.match(/\/[\w-]+.github.com/).nil?) ? 'gh-pages' : 'master'
|
||||||
|
Loading…
Reference in New Issue
Block a user