fix(cli): find the agent's git token without ps
The credential helper walks up the process tree to find the agent that holds a session token. It read the tree from ps, and slim Linux images such as the CI image have no ps. The chain then stopped at git's shell, no token was found, and git failed. On Linux the helper now reads each parent from /proc, and it uses ps only where there is no /proc.
1 file changed · +18 −2
apps/cli/refs.mjs+18 −2