Skip to content

codespaces: account for github/codespaces --system prefix #148

@pmrowla

Description

@pmrowla

Codespaces sets user.name/email for the github user in a non-standard --system level config. If we fail to get a valid signature (user.name/user.email) when generating git commits, we need to check for codespaces env vars and then manually load the signature from /usr/local/etc/gitconfig if we are in a codespaces env

(libgit2/pygit2 and dulwich will only check /etc/gitconfig which is the standard --system config location)

related: community/community#38070

to be clear this is a workaround for codespaces specific containers that should be removed if/when the codespaces behavior changes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions