Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Apr 2015 09:43:38 -0700
From:      Alfred Perlstein <alfred@freebsd.org>
To:        git@freebsd.org
Subject:   github help.
Message-ID:  <5522B7BA.1050201@freebsd.org>

next in thread | raw e-mail | index | archive | help
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.




Hello,

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

Currently the FreeBSD ports and source repos 
(https://github.com/freebsd/freebsd and 
https://github.com/freebsd/freebsd-ports) 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@github.com:splbio/freebsd-ports-shallow.git.

~/git % git clone --depth 5000 file:///Users/alfred/git/ports_worktree 
ports_shallow
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@github.com:splbio/freebsd-ports-shallow.git (fetch)
splbio    git@github.com:splbio/freebsd-ports-shallow.git (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@github.com:splbio/freebsd-ports-shallow.git
  ! [remote rejected] HEAD -> master (shallow update not allowed)
error: failed to push some refs to 
'git@github.com:splbio/freebsd-ports-shallow.git'


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

-Alfred



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5522B7BA.1050201>