Allow user on git://, git+http://, git+https://, and git+rsync:// scheme
Fixes: https://pagure.io/koji/issue/2868
This commit is contained in:
parent
f5552da017
commit
6426ddced1
1 changed files with 4 additions and 1 deletions
|
|
@ -548,7 +548,10 @@ class SCM(object):
|
|||
scheme = self.scheme
|
||||
if '+' in scheme:
|
||||
scheme = scheme.split('+')[1]
|
||||
gitrepo = '%s%s%s' % (scheme, self.host, self.repository)
|
||||
if self.user:
|
||||
gitrepo = '%s%s@%s%s' % (scheme, self.user, self.host, self.repository)
|
||||
else:
|
||||
gitrepo = '%s%s%s' % (scheme, self.host, self.repository)
|
||||
commonrepo = os.path.dirname(gitrepo) + '/common'
|
||||
checkout_path = os.path.basename(self.repository)
|
||||
if self.repository.endswith('/.git'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue