Closed dagwieers closed 3 years ago
It doesn't seem to work here. I'm also wondering, doesn't that leave a lot of stashes around?
$ make build
>>> Building package
git archive --format zip --worktree-attributes -v -o ../service.iptv.manager-0.2.2-makefile-zip-d6545d8.zip --prefix service.iptv.manager/
usage: git archive [<options>] <tree-ish> [<path>...]
or: git archive --list
or: git archive --remote <repo> [--exec <cmd>] [<options>] <tree-ish> [<path>...]
or: git archive --remote <repo> [--exec <cmd>] --list
--format <fmt> archive format
--prefix <prefix> prepend prefix to each pathname in the archive
-o, --output <file> write the archive to this file
--worktree-attributes
read .gitattributes in working directory
-v, --verbose report archived files on stderr
-0 store only
-1 compress faster
-9 compress better
-l, --list list supported archive formats
--remote <repo> retrieve the archive from remote repository <repo>
--exec <command> path to the remote git-upload-archive command
make: *** [Makefile:61: build] Error 129
$ git --version
git version 2.25.1
It doesn't seem to work here.
Should work, but there is a problem if you have no local changes. That is fixed now.
I'm also wondering, doesn't that leave a lot of stashes around?
No it doesn't.
This simplifies the creation of the ZIP file as it use .gitattributes for excluding common files.
It builds a ZIP file based on the working directory by using the current working directory as a stash reference.