threads / discuss / 20245

Problem packing repository

Subject: Problem packing repository

## tl;dr

2 messages between Jul 27, 2009 and Jul 27, 2009.

replies: 1people: 2as markdown or json

Murphy, John· Jul 27, 2009, 15:31 UTC · lore

I thought I resolved this problem with an upgrade to version 1.6.3.2.306.g4f4fa

I am getting this from git-gc in repositories that alternates:
usage: git-pack-objects [{ -q | --progress | --all-progress }] 
        [--max-pack-size=N] [--local] [--incremental] 
        [--window=N] [--window-memory=N] [--depth=N] 
        [--no-reuse-delta] [--no-reuse-object] [--delta-base-offset] 
        [--threads=N] [--non-empty] [--revs [--unpacked | --all]*]
[--reflog] 
        [--stdout | base-name] [--include-tag] 
        [--keep-unreachable | --unpack-unreachable] 
        [<ref-list | <object-list]
I tried running with GIT_TRACE=2 and I do not see anything glaring.
sudo -u git -s 'export
GIT_DIR='/docbuilder/git/repos/aimcore.git';export GIT_TRACE=2;git gc'
trace: built-in: git 'gc'
trace: run_command: 'reflog' 'expire' '--all'
trace: exec: 'git' 'reflog' 'expire' '--all'
trace: built-in: git 'reflog' 'expire' '--all'
trace: run_command: 'repack' '-d' '-l' '-A'
trace: exec: 'git' 'repack' '-d' '-l' '-A'
trace: exec: 'git-repack' '-d' '-l' '-A'
trace: built-in: git 'rev-parse' '--parseopt' '--' '-d' '-l' '-A'
trace: built-in: git 'rev-parse' '--git-dir'
trace: built-in: git 'config' '--bool' 'repack.usedeltabaseoffset'
trace: built-in: git 'pack-objects' '--honor-pack-keep' '--non-empty'
'--all' '--reflog' '--unpack-unreachable' '--local'
'--delta-base-offset'
'/docbuilder/git/repos/aimcore.git/objects/.tmp-13099-pack'
usage: git-pack-objects [{ -q | --progress | --all-progress }] 
        [--max-pack-size=N] [--local] [--incremental] 
        [--window=N] [--window-memory=N] [--depth=N] 
        [--no-reuse-delta] [--no-reuse-object] [--delta-base-offset] 
        [--threads=N] [--non-empty] [--revs [--unpacked | --all]*]
[--reflog] 
        [--stdout | base-name] [--include-tag] 
        [--keep-unreachable | --unpack-unreachable] 
        [<ref-list | <object-list]
error: failed to run repack
Shawn O. Pearce· Jul 27, 2009, 15:56 UTC · re: Murphy, John · lore

Re: Problem packing repository

"Murphy, John" <john.murphy@bankofamerica.com> wrote:
Show 6 quoted lines
> I thought I resolved this problem with an upgrade to version
> 1.6.3.2.306.g4f4fa
> 
> I am getting this from git-gc in repositories that alternates:
> 
> usage: git-pack-objects [{ -q | --progress | --all-progress }] 

At first glance it would seem you are running an older version of the git-pack-objects binary. Maybe check the system calls with truss and find out which binary its exec'ing ?

-- 
Shawn.

← back to recent threads