Method: Garlic::Repo#origin_url
- Defined in:
- lib/garlic/repo.rb
#origin_url ⇒ Object
105 106 107 108 109 110 111 |
# File 'lib/garlic/repo.rb', line 105 def origin_url unless @origin_url match = `cd #{path}; git remote show -n origin`.match(/URL: (.*)\n/) @origin_url = (match && match[1]) end @origin_url end |