Git repositories much bigger when hosted using RhodeCode

Issue #495 wontfix
Gili created an issue
  1. Clone glib from the official repository.

{{{ git --bare clone git:// glib.git Cloning into 'glib.git'... remote: Counting objects: 109042, done. remote: Compressing objects: 100% (19413/19413), done. remote: Total 109042 (delta 91877), reused 106319 (delta 89452) Receiving objects: 100% (109042/109042), 38.96 MiB | 310 KiB/s, done. Resolving deltas: 100% (91877/91877), done. }}}

  1. Host the above repository behind Rhodecode.

  2. Clone glib from step 2:

{{{ env GIT_SSL_NO_VERIFY=true git clone --bare glib2 Cloning into bare repository 'glib2'... Username for '': Password for '': remote: counting objects: 105548, done. remote: thank you for using rhodecode Receiving objects: 100% (105548/105548), 564.03 MiB | 3.40 MiB/s, done. }}}

Why is the first repository 38.96MB but the second one 564.03MB? They should be the same.

Comments (6)

  1. Gili reporter

    If you try the same steps using as the host the repository size remains the same.

  2. Marcin Kuzminski repo owner

    Looks like dulwich is not compressing objects, that's why the size is so high data is sent uncompressed.

    In beta version that problem is fixed since we no longer use dulwich(that have several bigger issues than this one), you can test yourself at

  3. Gili reporter


    How can I test this against I tried "git push master" and got:

    error: RPC failed; result=22, HTTP code = 411
    fatal: The remote end hung up unexpectedly
    fatal: The remote end hung up unexpectedly
    Everything up-to-date

    I'd love to test this locally but I can't use beta builds because of the lack of database migrations. Do you plan on putting out an official release anytime soon?

  4. Marcin Kuzminski repo owner

    Odd i just pushed glib to demo without issue.

    I hope to get release in next few weeks, after we polish code-review/pullrequest code

  5. Marcin Kuzminski repo owner

    @cowwoc make sure you have

    [http] postBuffer = 524288000

    In you git config, otherwise it's git limitations for pushing the amount of data.

  6. Log in to comment