fix(git-cred): defensive credential helper (SERVICE-16) #2
No reviewers
Labels
No labels
Status
Backlog
Status
Done
Status
InProgress
Status
InTest
Status
QA
Status
Review
Status
Todo
Type
Bug
Type
Task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
opencroft/sandbox-container!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "freya/defensive-git-cred-helper"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Makes the baked-in credential helper safe. Previously /tmp/git-cred used ${!GIT_PASSWORD} (bash indirect expansion), which throws invalid indirect expansion whenever GIT_PASSWORD is unset; since git consults credential.helper before GIT_ASKPASS, that hijacked auth for any non-app git call in the container. Now it exits 0 with no output when GIT_PASSWORD is unset, so git falls through to askpass/prompt, and uses $GIT_PASSWORD directly. Ref: SERVICE-16.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.