diff --git a/.submodules/recurse-fork/__main__.py b/.submodules/recurse-fork/__main__.py index b4fb6743..4ef483e2 100644 --- a/.submodules/recurse-fork/__main__.py +++ b/.submodules/recurse-fork/__main__.py @@ -60,14 +60,20 @@ def read_submodules() -> t.Dict[str, Submodule]: def login_to_github(): - """Log into GitHub with the CLI. + """Log into GitHub with the CLI and setup Git to use the CLI as a credential + helper. https://cli.github.com/manual/gh_auth_login + https://cli.github.com/manual/gh_auth_setup-git """ subprocess.run( ["gh", "auth", "login", "--web"], check=True, ) + subprocess.run( + ["gh", "auth", "setup-git"], + check=True, + ) def fork_repo(name: str, url: str):