From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vitor Antunes Subject: Re: git p4 clone not processing branches properly Date: Sat, 13 Jul 2013 01:28:16 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: Pete Wyckoff , Git Mailing List To: Matthieu Brucher X-From: git-owner@vger.kernel.org Sat Jul 13 02:28:54 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uxnhj-0004yk-D4 for gcvg-git-2@plane.gmane.org; Sat, 13 Jul 2013 02:28:51 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757946Ab3GMA2r (ORCPT ); Fri, 12 Jul 2013 20:28:47 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:62222 "EHLO mail-ie0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753307Ab3GMA2q (ORCPT ); Fri, 12 Jul 2013 20:28:46 -0400 Received: by mail-ie0-f173.google.com with SMTP id k13so21539268iea.4 for ; Fri, 12 Jul 2013 17:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=qDwbiGqQtWQDk2Xo3hHdrr+eX2+jcoEIEVI3LhAlXdA=; b=iPg8crBDaByYwL/JGKjVN4ZBSnNA9Ppr+hTJgMSlJZ26LdBq4CSge80sjlxlO2nNuV B+wFFW3k2x2PPelTJbcxjpEbGj9vR4O9Z0EVIslOkWd3xt8bcUgoL3OElv5k0gEYmQj1 E/eIzqYYmgXSVVNmxl1rqI/8kQFAwZLxyLvzr6Laz72m2FAFUIlxEDRqaIiv1O5FdwHY X0NUllFi36d7agqEZKSwiwGoWSGejvyznabDKDhGr4ZlPYjVeIWsAzExhL+zL1hC3eZ5 xKxZiHFN62fWMGsOzb6FLWcM2wXHcfAcvpKn7c+EZKnBaJ1tbOXcrTlEwjkJvcQVnzef d64g== X-Received: by 10.50.11.102 with SMTP id p6mr1665512igb.49.1373675326348; Fri, 12 Jul 2013 17:28:46 -0700 (PDT) Received: by 10.64.21.103 with HTTP; Fri, 12 Jul 2013 17:28:16 -0700 (PDT) In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Mon, Jul 8, 2013 at 3:03 PM, Matthieu Brucher wrote: > Hi, > > I tried without spec, but then it tried importing everything, even > though there was a .gitignore and a .git/config/exclude file. > Then, it crashed during the importation because it could find an old > branch (I don't have access to everything on the repository), so I > tried importing just the recent past, but then it failed because it > identified a branch names Branch/Main/src... > It is starting to feel as if I will have to compromise between > something that works but without branches and without the proper names > (the files are named Project/Branch/Main/...) or having the proper > names, but with all binaries, bogus branches... > I know it is not due to git, it is mainly that Perforce and git have > very different workflows. Or perhaps with any luck, the server is up > to date, and I can find a way of using Perforce's bridge. Hi Matthieu, I created a simple test case where I added a file to one of the branches in P4 but excluded it in the client spec. During synchronization git p4 correctly ignored it. Please check which git version you are using. It is possible the issue you are experiencing was fixed in a more recent version. Also, if possible, please try creating a simple test case that replicates your issue (p4 and p4d are free to use when the repo is only used by one person). If you record the commands you used and share them with me I will be able to better check this issue on my side. Cheers, Vitor