fabacab / git-archive-all.sh

A bash shell script wrapper for git-archive that archives a git superproject and its submodules, if it has any.
216 stars 86 forks source link

Fixing zip file format #22

Closed angeloc closed 7 years ago

angeloc commented 9 years ago

This patch fixes various errors with git archive zip file format.

urjaman commented 8 years ago

I guess atleast this one when trying a second time to make a zip from a repo...

git-archive-all: line 221: $TMPDIR/$(basename "$(pwd)").$FORMAT: cannot overwrite existing file

fabacab commented 8 years ago

Oh, I see. When trying a second time. Right, that's because the file already exists. I'm not sure silently overwriting the file is a good idea here, since the output of this script is not identical to git-archive. Can someone make a compelling argument why overwriting a previously-created archive, instead of just erroring and letting the user move it aside or rm it themselves, is a good idea?

urjaman commented 8 years ago

But it's not the final output (its an archive output in /tmp/ ...) ... actually i tried this thing on cygwin (just saying if it is relevant...) and specified output as ~/name.zip and it seemed to do stuff but no ~/name.zip was created. I tried it again without the ~ (with /home/username/name.zip ) and then got this error. At this point I gave up and used a different method.

fabacab commented 8 years ago

But it's not the final output (its an archive output in /tmp/ ...)

Oh! My bad. :) Yeah in that case it makes more sense.

flying-sheep commented 7 years ago

bumpy bump