Skip to content

Instantly share code, notes, and snippets.

@twe4ked
Created January 21, 2017 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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