From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: Jakub Narebski Subject: Re: Is there a way to trim old SHAs from a git tree (so it's not so large)? Date: Tue, 21 Nov 2006 23:53:14 +0100 Organization: At home Message-ID: References: <455B90AD.3060707@freescale.com> <20061117103611.183640@gmx.net> <45632957.5070205@freescale.com> <20061121163206.GA22006@spearce.org> <45632EC6.5030902@freescale.com> <20061121165656.GC22006@spearce.org> <456330CD.9080503@freescale.com> <20061121183941.GB22283@spearce.org> <45637457.1010505@freescale.com> <45638212.8030501@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit NNTP-Posting-Date: Tue, 21 Nov 2006 22:53:49 +0000 (UTC) Return-path: Envelope-to: gcvg-git@gmane.org X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: host-81-190-24-209.torun.mm.pl Mail-Copies-To: jnareb@gmail.com User-Agent: KNode/0.10.2 Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmeUX-0006OF-PL for gcvg-git@gmane.org; Tue, 21 Nov 2006 23:53:26 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031274AbWKUWwk (ORCPT ); Tue, 21 Nov 2006 17:52:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755480AbWKUWwi (ORCPT ); Tue, 21 Nov 2006 17:52:38 -0500 Received: from main.gmane.org ([80.91.229.2]:10951 "EHLO ciao.gmane.org") by vger.kernel.org with ESMTP id S1031290AbWKUWwb (ORCPT ); Tue, 21 Nov 2006 17:52:31 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GmeTE-000644-Dj for git@vger.kernel.org; Tue, 21 Nov 2006 23:52:05 +0100 Received: from host-81-190-24-209.torun.mm.pl ([81.190.24.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Nov 2006 23:52:04 +0100 Received: from jnareb by host-81-190-24-209.torun.mm.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Nov 2006 23:52:04 +0100 To: git@vger.kernel.org Sender: git-owner@vger.kernel.org Timur Tabi wrote: > Johannes Schindelin wrote: >> Try "git clone --depth 1 ". This will cut each ancestor chain after >> one ancestor (IIRC). > > I think you mean git-clone.sh instead of git-clone. If I do the above command, > I get: > > $ ./git clone --depth 1 git://127.0.0.1/temp/u-boot-83xx/ > Usage: /home/b04825/bin/git-clone [--template=] > [--use-separate-remote] [--reference ] [--bare] [-l [-s]] [-q] > [-u ] [--origin ] [-n] [] > > However, git-clone.sh is not quite working either. I had to run git-daemon on > my machine, because git-clone.sh doesn't like the http protocol, and my firewall > blocks everything but that. So I cloned a repo, started git-daemon, and I tried > this: > > $ ./git-clone.sh --depth 1 git://127.0.0.1/temp/u-boot-83xx > usage: git-fetch-pack [--all] [-q] [-v] [-k] [--thin] [--exec=upload-pack] > [host:]directory ... > fetch-pack from 'git://127.0.0.1/temp/u-boot-83xx/' failed. > > A regular git-clone of git://127.0.0.1/temp/u-boot-83xx works, so I think > there's something wrong with git-clone.sh or my invocation thereof. Erm, you have to compile git with "make bindir=$(pwd)" to run it from working directory. Or just install it somewhere not over git, like /usr/local/ or /home/local/. -- Jakub Narebski Warsaw, Poland ShadeHawk on #git