diff --git a/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py b/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py index b77def11..470a8680 100644 --- a/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py +++ b/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py @@ -35,14 +35,14 @@ class CmdGetAuthInfo(Cmd): # export if re.match(r'^\s*$', line): continue name, url, typ = re.split(r'\s+', line) - if name == 'origin' and typ == '(pull)': # TODO: Use other remotes, too? + if name == 'origin' and typ in ['(pull)', '(fetch)']: # TODO: Use other remotes, too? parsed = urlparse(url) for key in keys: result[key] = getattr(parsed, key) base = parsed.geturl() base = re.sub(r'/jw-pkg', '', base) base = re.sub(r'/proj$', '', base) - url['remote-base'] = base + result['remote_base'] = base break # --- Print results