bench icon indicating copy to clipboard operation
bench copied to clipboard

Recover from wrong git credentials during update

Open barredterra opened this issue 3 years ago • 2 comments

Issue: Feature Request

Is your feature request related to a problem? Please describe. When running bench update with some private custom apps, the git fetch part asks for username and password. When there is a typo in the credentials, the entire bench update fails immediately.

I can't count the times I had to re-run bench update because I messed up the credentials.

Describe the solution you'd like

  • Retry the failed git fetch until the user explicitly cancels the process
  • Optional: a way to pass git credentials for an unattended update

barredterra avatar Feb 17 '22 13:02 barredterra

Not a solution but use SSH keys man, using user/pass is very tiring 😄

ankush avatar Feb 17 '22 13:02 ankush

@ankush you're right. In some cases my problem could be avoided by using Deploy Keys. But it looks like that requires a complicated setup to work reliably at scale: many organizations, many repos, varying permissions (can read but cannot set deploy keys), many servers, ....

barredterra avatar Feb 17 '22 13:02 barredterra