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

Re: New repo quickly corrupted

From
JSJason Sewall <jasonsewall@gmail.com>
Date
Nov 15, 2007, 21:59 UTC
Message-ID
<31e9dd080711151359y1504e58cp994e828d44660c7@mail.gmail.com>
In-Reply-To
<7vejer41ib.fsf@gitster.siamese.dyndns.org>
On Nov 15, 2007 4:55 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 24 quoted lines
> "Jason Sewall" <jasonsewall@gmail.com> writes:
>
> > find . -type f -exec dos2unix {} +
> > git commit -a --amend
> > [accept same message]
> > git fsck
> > [same error message as above]
> >
> > I just built my git today, unmodified:
> > git version 1.5.3.5.721.g039b
> >
> > What's going on?
>
> Carelessness is what is going on.
>
> Notice how nicely your "find . -type f -exec dos2unix {}" goes
> down to .git/objects and eats your loose objects
>
> You probably wanted to do
>
>         git ls-files | xargs dos2unix
>
> instead.
>
Sure enough. I'll chalk that one up to too many mind-numbing meetings today.
Thanks for the wake-up...
Previous: Junio C HamanoNext: Linus Torvalds
Message 3 of 11 in “New repo quickly corrupted”
  1. Jason SewallNov 15, 2007
  2. Junio C HamanoNov 15, 2007
  3. Jason SewallNov 15, 2007
  4. Linus TorvaldsNov 15, 2007
  5. Jason SewallNov 15, 2007
  6. Nicolas PitreNov 15, 2007
  7. Linus TorvaldsNov 15, 2007
  8. Christian CouderNov 16, 2007
  9. Andreas EricssonNov 16, 2007
  10. Christian CouderNov 17, 2007
  11. Robin RosenbergNov 17, 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.