Merge pull request #666 from nathanl/example_repo_url

Example repo URL - see Github issue 516
source
Brandon Mathis 2012-07-30 10:58:35 -07:00
commit 98afc616d7
1 changed files with 3 additions and 1 deletions

View File

@ -299,7 +299,9 @@ task :setup_github_pages, :repo do |t, args|
if args.repo
repo_url = args.repo
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
user = repo_url.match(/:([^\/]+)/)[1]
branch = (repo_url.match(/\/[\w-]+.github.com/).nil?) ? 'gh-pages' : 'master'