Skip to content

Test(git-archive-file): add unit test for it #1081

@vanpipy

Description

@vanpipy

File

git-archive-file

Testcases

  • If on the branch tags*, create a zip file which named {dirname}.{git describe}.zip in the root.
  • If on any branch not like tags*
    • and the branch is not git_extra_default_branch, create a zip file which is named {dirname}.{git describe --always --long}.{branch_name}.zip in the root.
    • and the branch is git_extra_default_branch, create a zip file which is named {dirname}.{git describe --always --long}.zip in the root.
  • Base above, replace the / or \ with - when the final filename has one.
    • branch and version name maybe include the slash /, but cannot include the backslash \
    • dirname maybe include the backslash \, but cannot include the slash /

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions