Skip to content

dashboard discovery/onboarding clones lack the headless credential-hardening applied to advisory polls (#34/#50 follow-up) #69

Description

@magnificentlycursed

Follow-up to #34 / PR #50. That PR hardened the dashboard's advisory git calls (poll + project detection) against headless hangs by setting GIT_TERMINAL_PROMPT=0, neutralizing GIT_ASKPASS, and passing -c credential.helper= so a private or moved remote fails fast instead of blocking on a credential prompt (dashboard/projects.rs, poll.rs).

The same treatment was not applied to the dashboard's clone paths used for discovery/onboarding — dashboard/github_api.rs (~245-248) and dashboard/api.rs (~606) still invoke git clone without the credential-neutralizing env/args. On a headless host (no TTY, no askpass), cloning a private or since-removed repo can hang exactly as the advisory calls did before #50.

Fix: apply the identical GIT_TERMINAL_PROMPT=0 + empty GIT_ASKPASS + -c credential.helper= treatment to those clone invocations (ideally via one shared helper so the two paths cannot drift from the advisory ones).

Authored by Claude Code on behalf of @magnificentlycursed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions