0004-GIT-URLs-may-have-the-extension-.git-when.patch
lib/creator/git_creator.rb | ||
---|---|---|
23 | 23 |
end |
24 | 24 | |
25 | 25 |
def external_url(name, regexp = %r{^(?:https?|git|ssh)://}) |
26 |
super |
|
26 |
if options['git_ext'] && File.directory?("#{path(name)}.git") |
|
27 |
super+".git" |
|
28 |
else |
|
29 |
super |
|
30 |
end |
|
27 | 31 |
end |
28 | 32 | |
29 | 33 |
def default_path(identifier) |
30 |
- |