Skip to content

error handling is ineffective in the git-clone task #2788

@kdudka

Description

@kdudka

The script of the git-clone task starts with set -eu, which makes the shell interpreter exit immediately when a command exits with a non-zero status:

Consequently, the bodies of all the if [ "${*_EXIT_CODE}" != "0" ] conditions are effectively dead code. For example, the git status command is never executed when a merge conflict occurs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions