Skip to content

add validation after git fetch #412

@Liujingfang1

Description

@Liujingfang1

When the git server has some caching issue, git ls-remote and git fetch may get inconsistent commits. Later this leads failure in the command git reset --hard <COMMIT>.

The failure can be avoid by adding a validation after git fetch. If the local head commit is different from the result of git ls-remote, it should retry or wait for the next sync.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions