From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] builtin clone: support bundles Date: Sun, 02 Mar 2008 09:50:55 -0800 Message-ID: <7vhcfpnhfk.fsf@gitster.siamese.dyndns.org> References: <200802260321.14038.johan@herland.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Daniel Barkalow , Johan Herland , git@vger.kernel.org, Kristian =?utf-8?Q?H=C3=B8gsb?= =?utf-8?Q?erg?= , Santi =?utf-8?Q?B=C3=A9jar?= To: Johannes Schindelin X-From: git-owner@vger.kernel.org Sun Mar 02 18:51:51 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JVsLm-0002vi-SB for gcvg-git-2@gmane.org; Sun, 02 Mar 2008 18:51:51 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755382AbYCBRvO (ORCPT ); Sun, 2 Mar 2008 12:51:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755375AbYCBRvO (ORCPT ); Sun, 2 Mar 2008 12:51:14 -0500 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:48617 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755322AbYCBRvN (ORCPT ); Sun, 2 Mar 2008 12:51:13 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 7BB64245A; Sun, 2 Mar 2008 12:51:12 -0500 (EST) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id B13DB2454; Sun, 2 Mar 2008 12:51:02 -0500 (EST) In-Reply-To: (Johannes Schindelin's message of "Sun, 2 Mar 2008 17:34:12 +0000 (GMT)") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Johannes Schindelin writes: > Hi, > > On Sun, 2 Mar 2008, Daniel Barkalow wrote: > >> On Sun, 2 Mar 2008, Johannes Schindelin wrote: >> >> > + for (i = 0; i < ARRAY_SIZE(bundle_suffix); i++) { >> > + const char *path; >> > + path = mkpath("%s%s", repo, bundle_suffix[i]); >> > + if (!stat(path, &st) && S_ISREG(st.st_mode)) { >> > + *is_bundle = 1; >> > + return xstrdup(make_absolute_path(path)); >> >> The problem I'm seeing in general is that origin/next's make_absolute_path >> doesn't work on a regular file in the current directory. How are you >> getting those tests to pass? > > http://repo.or.cz/w/git/dscho.git?a=commitdiff;h=d066bd60e5a93d69c47318cf6e71f77c84b737e6 FYI, I already queued this for 'master'.