Skip to content

Updating mirror settings of a repository could cause it to lose the token for mirroring #30416

Closed
@wolfogre

Description

@wolfogre

Description

Reproduction steps:

  1. Mirror a private repo from GitHub with a token
image
  1. Sync mirror manually and check admin system notices to make sure everything is fine now.
image image
  1. Update the "Mirror Interval", don't touch "Authorization".
image
  1. Sync mirror manually and check admin system notices again.
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/repo-migrationMigrate repos from other platforms to Gitea, or from Gitea to themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions