Skip to content

Instantly share code, notes, and snippets.

@twe4ked
Created January 21, 2017 05:00
Show Gist options
  • Save twe4ked/9b6cb443a9986efbf00fac5127746e8f to your computer and use it in GitHub Desktop.
Save twe4ked/9b6cb443a9986efbf00fac5127746e8f to your computer and use it in GitHub Desktop.
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment