git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Another fast-import/import-tars issue

From
CRChris Riddoch <riddochc@gmail.com>
Date
May 11, 2007, 20:08 UTC
Message-ID
<6efbd9b70705111308v47a76b04n9328ebf393a209e6@mail.gmail.com>
Hi, folks.

I believe I've uncovered an issue in fast-import, but I don't know the code well enough yet to debug it. So, I'll produce my evidence and let others work on finding the solution. It should be pretty easy to reproduce.

First, I'm running: 1.5.2.rc1.9.g6644
Grab the tarball of Perl 5.8.8 - http://www.perl.com/CPAN/src/perl-5.8.8.tar.bz2

Note its md5, just so you know it's not corrupted from the outset. b8c118d4360846829beb30b02a6b91a7 perl-5.8.8.tar.gz a377c0c67ab43fd96eeec29ce19e8382 perl-5.8.8.tar.bz2

Try this:

$ tar -xjf perl-5.8.8.tar.bz2 $ cd perl-5.8.8 $ git init $ git add . $ git commit -a -m "Import from working tree copy"

Now, for convenience of debugging, I have myself a script I call ~/bin/fast-import-filter.sh:

#!/bin/bash tee fast-import.log | git fast-import --quiet

Then, I have a slightly-changed ~/bin/import-tars script, like so:

20c20,21 < open(FI, '|-', 'git', 'fast-import', '--quiet') ---

> #open(FI, '|-', 'git', 'fast-import', '--quiet')
> open(FI, '|-', 'fast-import-filter.sh')
Now,
$ import-tars.pl ../perl-5.8.8.tar.bz2

Okay, so the trees pointed to by the tips of the master and import-tars branches *should* be identical here, right?

$ git diff-tree master: import-tars: | wc -l 229

Not so good.
-- 
epistemological humility
  Chris Riddoch
Next: Johannes Schindelin
Message 1 of 4 in “Another fast-import/import-tars issue”
  1. Chris RiddochMay 11, 2007
  2. import-tars: Use the "Link indicator" to identify directoriesJohannes Schindelin, May 16, 2007
  3. Junio C HamanoMay 16, 2007
  4. Junio C HamanoMay 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.