git doesn't finds the parent of a commit (was: How to fetch missing pack)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: Christian Couder <chriscool@...>, Shawn O. Pearce <spearce@...>
Date: Sunday, April 27, 2008 - 6:47 am

Hi,

Shawn O. Pearce schrieb am Thu 24. Apr, 02:08 (-0400):

I didn't know the list of objects I'm missing, but I used this little
script do find them:

anchor=3D7cb192eab0251911e2ca77d4ecceb621dd2d34f5
while true
do
    outp=3D$(git log --pretty=3Draw --raw $anchor 2>&1 >/dev/null)
    echo $outp
    [ $#outp -eq 0 ] && break
    cmt=3D${${outp##* \(}%\)}
    git cat-file -t $cmt >/dev/null 2>&1 && \
      cmt=3D$(git cat-file commit $cmt |grep '^tree ')
    echo ${cmt##* } | ssh server cd git\; git pack-objects --stdout | \
      git index-pack --stdin >/dev/null
done

Maybe it helps someone else. :)

But now, there's something else broken.

% git cat-file commit b63e99500137c913bd801a2f22b6cf88c63b95c5
tree 68a58fb97935f35c6fb7bcbcfed73b1697db000a
parent 3f061887c562b20d3ed3d1f764462cf986a1ad12
author Wincent Colaiuta <win@wincent.com> 1195996542 +0100
committer Junio C Hamano <gitster@pobox.com> 1196019475 -0800

Add "--patch" option to git-add--interactive

When the "--patch" option is supplied, the patch_update_cmd() function is
=E2=80=A6

% git cat-file commit 3f061887c562b20d3ed3d1f764462cf986a1ad12
tree 636a0f9c085aac7ba539ef2ace03b3081481891a
parent 324ccbd6a09816af830b22b02bbeb06349141849
author Junio C Hamano <gitster@pobox.com> 1196014210 -0800
committer Junio C Hamano <gitster@pobox.com> 1196014993 -0800

add -i: Fix running from a subdirectory

This fixes the pathspec interactive_add() passes to the underlying
=E2=80=A6

% git rev-parse b63e99500137c913bd801a2f22b6cf88c63b95c5~1
b63e99500137c913bd801a2f22b6cf88c63b95c5~1
fatal: ambiguous argument 'b63e99500137c913bd801a2f22b6cf88c63b95c5~1': unk=
nown revision or path not in the working tree.
Use '--' to separate paths from revisions

Can someone tell me what I'm doing wrong?


fsck --full reports only dangling objects, no breakage.

Bye, J=C3=B6rg.
--=20
Die zehn Gebote Gottes enthalten 172 W=C3=B6rter, die amerikanische
Unabh=C3=A4ngigkeitserkl=C3=A4rung 300 W=C3=B6rter, die Verordnung der euro=
p=C3=A4ischen
Gemeinschaft =C3=BCber den Import von Karamelbonbons exakt 25911 W=C3=B6rte=
r.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: How to fetch missing pack, Jörg, (Wed Apr 23, 4:55 pm)
Re: How to fetch missing pack, Christian Couder, (Thu Apr 24, 2:01 am)
Re: How to fetch missing pack, Shawn O. Pearce, (Thu Apr 24, 2:08 am)
git doesn't finds the parent of a commit (was: How to fetch ..., Jörg, (Sun Apr 27, 6:47 am)
Re: git doesn't finds the parent of a commit (was: How to fe..., Stephen R. van den Berg, (Sun Apr 27, 1:37 pm)
Re: git doesn't finds the parent of a commit, Junio C Hamano, (Sun Apr 27, 4:18 pm)
Re: git doesn't finds the parent of a commit, Stephen R. van den Berg, (Sun Apr 27, 5:46 pm)