Problems trying to pull sources from git
Marko Käning
MK-MacPorts at techno.ms
Wed Nov 16 10:20:03 PST 2011
On Nov 14, 2011, at 8:37 AM, Marko Käning wrote:
> …but I still get this error:
>> ---
>> $ git log -1
>> error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack does not match index
>> error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack cannot be accessed
>> error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack does not match index
>> error: packfile .git/objects/pack/pack-706f45c220a99af84f98f872ac0d14cbc86e08c6.pack cannot be accessed
>> fatal: bad object HEAD
>> ---
I realize that there are quite a few ports actually using git sources to build their stuff.
If I do extract e.g. SSHKeychain's sources
---
$ sudo port extract SSHKeychain
$ cd /opt/macports-test/var/macports/build/_opt_macports-test_var_macports_sources_rsync.macports.org_release_ports_aqua_SSHKeychain/SSHKeychain/work/SSHKeychain-0.8.2
$ sudo git log -l1
commit 3ea5174056396a4edc717c193a57720b9c69a1e5
Author: Cliff Moon <cliff at moonpolysoft.com>
Date: Wed Jul 8 10:45:59 2009 -0700
deal with ssh keys which have linefeed characters.
commit cb4ea6ddf0cbc8d5928763e3800d851a77a7480e
Author: bart <bart at 1a270b93-f1e6-0310-a04b-e8f41df0ee4d>
Date: Sun Jun 22 11:58:30 2008 +0000
commit 97e1299beee4780fd447773b0ec11d11b8cb2b0f
Author: bart <bart at 1a270b93-f1e6-0310-a04b-e8f41df0ee4d>
Date: Tue May 20 08:13:03 2008 +0000
commit 649d6df28993aacaaededf5203fff0820f3b706f
Author: bart <bart at 1a270b93-f1e6-0310-a04b-e8f41df0ee4d>
Date: Tue Sep 18 09:29:53 2007 +0000
commit 587910607f035a28879e7d2384219f1834afaa86
[ MP-devel ] :SSHKeychain-0.8.2 marko$ sudo git log -1
commit 3ea5174056396a4edc717c193a57720b9c69a1e5
Author: Cliff Moon <cliff at moonpolysoft.com>
Date: Wed Jul 8 10:45:59 2009 -0700
deal with ssh keys which have linefeed characters.
$
---
In its port file one can see that it's very similar to what I've shown in my initial post to this thread:
---
fetch.type git
git.url git://sshkeychain.git.sourceforge.net/gitroot/sshkeychain/sshkeychain
git.branch 3ea5174056396a4edc717c193a57720b9c69a1e5
---
A specific changeset is defined by git.branch and that should be fine, but as initially posted a "git log" command is bound to fail in case of kmymoney and I still don't understand whether this is caused by the kmymoney git repo from which the macports infrastructure clones, or whether it is due to macports itself…
Greets,
Marko
More information about the macports-dev
mailing list