Skip to content

Maybe change the default ARCHIVE_NAME of git-archive-file #1067

@halostatue

Description

@halostatue

The $ARCHIVE_NAME is set to $(basename $PWD), which feels weird:

$ # This assumes that I have git-extras and the GitHub CLI installed
$ gh repo clone tj/git-extras
$ cd git-extras/man
$ git archive-file
Building archive on branch "master"
Saved to "man.3.0.0-1034-gcb29c62c65bf.master.zip" (268K)

This feels like it should instead be set to $(basename "$(git rev-parse --show-toplevel)").

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