/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/urls.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-11 12:46:45 UTC
  • mfrom: (7511.1.1 actions-no-fork)
  • Revision ID: breezy.the.bot@gmail.com-20200611124645-4lx66gps99i0hmzh
Avoid using fork when running the testsuite in github actions.

Merged from https://code.launchpad.net/~jelmer/brz/actions-no-fork/+merge/385565

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from dulwich.client import parse_rsync_url
26
26
 
27
27
 
28
 
KNOWN_GIT_SCHEMES = ['git+ssh', 'git', 'http', 'https', 'ftp', 'ssh']
29
 
SCHEME_REPLACEMENT = {
30
 
    'ssh': 'git+ssh',
31
 
    }
 
28
KNOWN_GIT_SCHEMES = ['git+ssh', 'git', 'http', 'https', 'ftp']
32
29
 
33
30
 
34
31
def git_url_to_bzr_url(location, branch=None, ref=None):
50
47
                port=None,
51
48
                quoted_path=urlutils.quote(path, safe="/~"))
52
49
        location = str(url)
53
 
    elif url.scheme in SCHEME_REPLACEMENT:
54
 
        url.scheme = SCHEME_REPLACEMENT[url.scheme]
55
 
        location = str(url)
56
50
    if ref == b'HEAD':
57
51
        ref = branch = None
58
52
    if ref: