Closed
Description
Description
Reproduction steps:
- Mirror a private repo from GitHub with a token

- Sync mirror manually and check admin system notices to make sure everything is fine now.


- Update the "Mirror Interval", don't touch "Authorization".

- Sync mirror manually and check admin system notices again.

The error log looks like:
Failed to update mirror repository '/var/lib/gitea/data/gitea-repositories/root/test_private_repo.git': fatal: could not read Username for 'https://github.com': terminal prompts disabled
Gitea Version
v1.21.10
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Binary.
Database
PostgreSQL