def remote_urls(): "Show apps remote url" for app in get_apps(): repo_dir = get_repo_dir(app) if os.path.exists(os.path.join(repo_dir, '.git')): remote = get_remote(app) remote_url = subprocess.check_output(['git', 'config', '--get', 'remote.{}.url'.format(remote)], cwd=repo_dir).strip() print "{app} {remote_url}".format(app=app, remote_url=remote_url)
def remote_urls(): "Show apps remote url" for app in get_apps(): repo_dir = get_repo_dir(app) if os.path.exists(os.path.join(repo_dir, '.git')): remote = get_remote(app) remote_url = subprocess.check_output(['git', 'config', '--get', 'remote.{}.url'.format(remote)], cwd=repo_dir).strip() print("{app} {remote_url}".format(app=app, remote_url=remote_url))
def remote_urls(): "Show apps remote url" for app in get_apps(): repo_dir = get_repo_dir(app) if os.path.exists(os.path.join(repo_dir, ".git")): remote = get_remote(app) remote_url = subprocess.check_output( ["git", "config", "--get", "remote.{}.url".format(remote)], cwd=repo_dir ).strip() print "{app} {remote_url}".format(app=app, remote_url=remote_url)