{"thread":{"id":"59346","subject":"git archive has confusing error messages","startedAt":"2023-03-06T10:25:33Z","lastAt":"2023-03-06T10:25:33Z","messageCount":1,"participants":["Matthias Görgens"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"473046","messageId":"CA+X7ob8DWGmoVTxSVvrFN68V=pcaZripfP=s+LpWvXN-6L7W7Q@mail.gmail.com","threadId":"59346","inReplyTo":null,"subject":"git archive has confusing error messages","fromName":"Matthias Görgens","fromEmail":"matthias.goergens@gmail.com","sentAt":"2023-03-06T10:25:01Z","receivedAt":"2023-03-06T10:25:33Z","isPatch":false,"sender":{"key":"matthias.goergens@gmail.com","avatar":"https://gravatar.com/avatar/99622ca47e2a12c37e6a62283bbd4df70398fa95afc6a56f483c3f4cef709714?d=mp&s=160"},"body":"Hi,\n\nHere's something I noticed back in 2012 or so, and stumbled upon again recently.\n\nStart eg at the root of git's own repository:\n\n$ cd xdiff/\n$ git archive --format=tar HEAD .. | tar t\nfatal: ..: '..' is outside repository at '/Users/matthias/prog/git'\n\nIn the best case, I would have hoped to get an archive of the whole\nrepository here.  At a minimum, I would hope for an error message that\nwas less confusing: the directory I was referring to is very much\ninside the repository.\n\nFor comparison, `git -C .. archive --format=tar HEAD | tar t` has the\nbehaviour that I would expect in this scenario: a tarball of the whole\nrepository.\n\n(I don't know enough about git to produce a patch to fix this at this\npoint, but I can try looking into fixing this.)\n\nThanks,\nMatthias.\n"}]}