Changeset - 29d8bdab74dc
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 5 years ago 2020-11-16 14:38:40
mads@kiilerich.com
Grafted from: f8a71e463394
vcs: always pass str to _check_url

hg would sometimes pass bytes.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/backends/hg/repository.py
Show inline comments
 
@@ -355,12 +355,12 @@ class MercurialRepository(BaseRepository
 
        """
 
        try:
 
            if src_url:
 
                url = safe_bytes(self._get_url(src_url))
 
                url = self._get_url(src_url)
 
                opts = {}
 
                if not update_after_clone:
 
                    opts.update({'noupdate': True})
 
                MercurialRepository._check_url(url, self.baseui)
 
                mercurial.commands.clone(self.baseui, url, safe_bytes(self.path), **opts)
 
                mercurial.commands.clone(self.baseui, safe_bytes(url), safe_bytes(self.path), **opts)
 

	
 
                # Don't try to create if we've already cloned repo
 
                create = False
0 comments (0 inline, 0 general)