From owner-freebsd-git@FreeBSD.ORG Mon Apr 6 16:43:50 2015 Return-Path: Delivered-To: git@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6D91359B for ; Mon, 6 Apr 2015 16:43:50 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5CB5CEE for ; Mon, 6 Apr 2015 16:43:46 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id E33F6341F868 for ; Mon, 6 Apr 2015 09:43:38 -0700 (PDT) Message-ID: <5522B7BA.1050201@freebsd.org> Date: Mon, 06 Apr 2015 09:43:38 -0700 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: git@freebsd.org Subject: github help. Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2015 16:43:50 -0000 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