github help.

Alfred Perlstein alfred at
Mon Apr 6 16:43:50 UTC 2015

Hey folks, I just sent this into github support to see if they can help 
us.  The goal is to have a shallow version of FreeBSD repositories for 
people to quickly hack and browse against.


I am trying to address an issue with very large repositories on FreeBSD.

Currently the FreeBSD ports and source repos 
( and are both very, very large.

This causes issues the following list of issues (and possibly more):
1) github web interface denies access to viewing history.
2) clone from github takes a huge amount of time.

What I have tried to do to mitigate is create a shallow clone and upload 
that to github for people to browse and use.

This would maintain the hashes and fix both issues 1 and 2 mentioned above.

The issue I am having is that I can't push that repo to my account:

Note: "ports_worktree" is a full clone.  I am making "ports_shallow" a 
shallow clone and trying to push it to 
git at

~/git % git clone --depth 5000 file:///Users/alfred/git/ports_worktree 
Cloning into 'ports_shallow'...
remote: Counting objects: 215548, done.
remote: Compressing objects: 100% (185074/185074), done.
remote: Total 215548 (delta 47417), reused 174388 (delta 26070)
Receiving objects: 100% (215548/215548), 73.21 MiB | 12.63 MiB/s, done.
Resolving deltas: 100% (47417/47417), done.
Checking connectivity... done.
Checking out files: 100% (117549/117549), done.

~/git/ports_shallow % git remote -v
origin    file:///Users/alfred/git/ports_worktree (fetch)
origin    file:///Users/alfred/git/ports_worktree (push)
splbio    git at (fetch)
splbio    git at (push)
~/git/ports_shallow % git push splbio HEAD
Counting objects: 215548, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (163727/163727), done.
Writing objects: 100% (215548/215548), 73.21 MiB | 238.00 KiB/s, done.
Total 215548 (delta 47417), reused 215548 (delta 47417)
To git at
  ! [remote rejected] HEAD -> master (shallow update not allowed)
error: failed to push some refs to 
'git at'

I am wondering if it is possible to make this work?


More information about the freebsd-git mailing list