Skip to content

Commit fbc2fda

Browse files
authored
Merge pull request voxpupuli#477 from gharper/pip-url-regex-allow-git-git
Update pip url regex to support 'git+git://<url>'
2 parents e9dbed0 + 3644bd9 commit fbc2fda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/pip.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@
158158
$source = $url ? {
159159
false => "${pkgname}${extras_string}",
160160
/^(\/|[a-zA-Z]\:)/ => $url,
161-
/^(git\+|hg\+|bzr\+|svn\+)(http|https|ssh|svn|sftp|ftp|lp)(:\/\/).+$/ => $url,
161+
/^(git\+|hg\+|bzr\+|svn\+)(http|https|ssh|svn|sftp|ftp|lp|git)(:\/\/).+$/ => $url,
162162
default => "${url}#egg=${egg_name}",
163163
}
164164

165165
$pip_install = "${pip_env} --log ${log}/pip.log install"
166166
$pip_common_args = "${pypi_index} ${proxy_flag} ${install_args} ${install_editable} ${source}"
167167

168168
# Explicit version out of VCS when PIP supported URL is provided
169-
if $source =~ /^(git\+|hg\+|bzr\+|svn\+)(http|https|ssh|svn|sftp|ftp|lp)(:\/\/).+$/ {
169+
if $source =~ /^(git\+|hg\+|bzr\+|svn\+)(http|https|ssh|svn|sftp|ftp|lp|git)(:\/\/).+$/ {
170170
if $ensure != present and $ensure != latest {
171171
exec { "pip_install_${name}":
172172
command => "${pip_install} ${install_args} ${pip_common_args}@${ensure}#egg=${egg_name}",

0 commit comments

Comments
 (0)