git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git archive has confusing error messages
@ 2023-03-06 10:25 Matthias Görgens
  0 siblings, 0 replies; only message in thread
From: Matthias Görgens @ 2023-03-06 10:25 UTC (permalink / raw
  To: git

Hi,

Here's something I noticed back in 2012 or so, and stumbled upon again recently.

Start eg at the root of git's own repository:

$ cd xdiff/
$ git archive --format=tar HEAD .. | tar t
fatal: ..: '..' is outside repository at '/Users/matthias/prog/git'

In the best case, I would have hoped to get an archive of the whole
repository here.  At a minimum, I would hope for an error message that
was less confusing: the directory I was referring to is very much
inside the repository.

For comparison, `git -C .. archive --format=tar HEAD | tar t` has the
behaviour that I would expect in this scenario: a tarball of the whole
repository.

(I don't know enough about git to produce a patch to fix this at this
point, but I can try looking into fixing this.)

Thanks,
Matthias.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-06 10:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-06 10:25 git archive has confusing error messages Matthias Görgens

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).