Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

silently fails when push is refused by remote  #2

@stmllr

Description

@stmllr

Steps to reproduce:

Create a repo with a file >1GB
Push to GitHub (which has hard quota of 1GB).

Linux git client:

git push origin master
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
kex protocol error: type 7 seq 16562 MiB | 644.00 KiB/s   
kex protocol error: type 7 seq 3305iB | 643.00 KiB/s   
Writing objects: 100% (6/6), 2.00 GiB | 706.00 KiB/s, done.
Total 6 (delta 1), reused 0 (delta 0)
remote: fatal: pack exceeds maximum allowed size
error: unpack failed: index-pack abnormal exit
To github.com:backhub/restores-test-one-big.git
 ! [remote rejected] master -> master (failed)
error: failed to push some refs to '[email protected]:backhub/restores-test-one-big.git'

gitfetch:

Git.push(path, url, token)
=> nil

I expect an error being raised

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions