Trying to create an archive for deployment, but I'm getting an error. No idea why -- I've done other deployments using this same line.
git archive --format=zip --output=filename.zip HEAD:www Well in my case it is a missing parameter, it interprets the first name ofter output as the ref to base the archive on.
wrong:
git archive -o /c/work/220402_PX_Integrate_P4TA.zip $(git diff --name-only 220402_Testmerge_prep_P4TA..PX_Integrate_P4TA) gives you the error:
fatal: not a valid object name: codeunit/codeunit_0000000002.txt
which is the first return value from git diff, but not a ref, it's a file.
working:
git archive -o /c/work/220402_PX_Integrate_P4TA.zip HEAD $(git diff --name-only 220402_Testmerge_prep_P4TA..PX_Integrate_P4TA) The first parameter is now HEAD, the current tip of the repository. Still should be the version you want to export, though.
wwwa top-level directory in the currentHEADrevision of the repo? (To clarify: I'm suspecting that when you ran this before, such a directory existed. But this time, is it a different repo with different structure; or was the directory removed or renamed? If soHEAD:wwwwould no longer be a valid tree-ish.)