Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vanpipy opened this issue Sep 26, 2023 · 0 comments · Fixed by #1084
Closed

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

vanpipy opened this issue Sep 26, 2023 · 0 comments · Fixed by #1084

Comments

@vanpipy
Copy link
Collaborator

vanpipy commented Sep 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant