From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-2.1 required=3.0 tests=AWL,BAYES_00,BODY_URI_ONLY, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,STOX_REPLY_TYPE, T_RP_MATCHES_RCVD shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 860401F404 for ; Sat, 10 Feb 2018 15:27:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751157AbeBJP1Y (ORCPT ); Sat, 10 Feb 2018 10:27:24 -0500 Received: from smtp-out-6.talktalk.net ([62.24.135.70]:7645 "EHLO smtp-out-6.talktalk.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751143AbeBJP1X (ORCPT ); Sat, 10 Feb 2018 10:27:23 -0500 Received: from PhilipOakley ([92.29.14.162]) by smtp.talktalk.net with SMTP id kX3henn7zjFUbkX3heUuPu; Sat, 10 Feb 2018 15:27:22 +0000 X-Originating-IP: [92.29.14.162] X-Spam: 0 X-OAuthority: v=2.2 cv=TJE1cxta c=1 sm=1 tr=0 a=NXc+vVEgz70gitWznrz3ig==:117 a=NXc+vVEgz70gitWznrz3ig==:17 a=IkcTkHD0fZMA:10 a=xtxXYLxNAAAA:8 a=pGLkceISAAAA:8 a=fGO4tVQLAAAA:8 a=yMhMjlubAAAA:8 a=1XWaLZrsAAAA:8 a=NEAV23lmAAAA:8 a=KbOr2bDaXEMFKBTIZlsA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=QEXdDO2ut3YA:10 a=xts0dhWdiJbonKbuqhAr:22 Message-ID: <00CF0CF5FAFD47F6BA3478838677BBAB@PhilipOakley> Reply-To: "Philip Oakley" From: "Philip Oakley" To: , "Git List" References: Subject: Re: Crash when clone includes magic filenames on Windows Date: Sat, 10 Feb 2018 15:27:22 -0000 Organization: OPDS MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Antivirus: AVG (VPS 180209-2, 09/02/2018), Outbound message X-Antivirus-Status: Clean X-CMAE-Envelope: MS4wfOUT6EHbqelUqYXyCF9hn65lxG3G35sHdSa6ZqUNEo6l7okKAhlauZTN7M7iz5YpBnBHzuM8r22vqO7Kco30Piu7avfq8DoPDnedfYz8XjMyTpqFW9vb 4EWLoAl2+2lVn4Yo9F4BFIJ0XsDxhpbXoHxe+Xxd9fMu+h/JPttUBIcP24zT//7Ckw91JwVh8pYUmkS/YmQYqi7pHwvTTYKewu4= Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: "Philip Oakley" > From: "Jeffrey Walton" >> Hi Everyone, >> >> I'm seeing this issue on Windows: https://pastebin.com/YfB25E4T . It >> seems the filename AUX is the culprit. Also see >> https://blogs.msdn.microsoft.com/oldnewthing/20031022-00/?p=42073 . >> (Thanks to Milleneumbug on Stack Overflow). >> >> I did not name the file, someone else did. I doubt the filename will be >> changed. >> >> Searching is not turning up much information: >> https://www.google.com/search?q=git+"magic+filenames"+windows >> >> Does anyone know how to sidestep the issue on Windows? >> >> Jeff >> > This comes up on the Git-for-Windows (GfW) issues fairly often > https://github.com/git-for-windows/git/issues. > > The fetch part of the clone is sucessful, but the final checkout step > fails when the AUX (or any other prohibited filename - that's proper > cabkward compatibility for you) is to be checked out then the file system > (FS) refuses and the checkout 'fails. You do however have the full repo > locally. > > The trick is probably then to set up a sparse checkout so the AUX is never > included on the FS. > > However it is an open 'up-for-grabs' project to add such a check in GfW. > > Philip One option maybe to extend the $GIT_DIR/info/sparse-checkout capability and add a specific $GIT_DIR/info/never-sparse-checkout file that could carry the complement (files & dirs) options that are platform applicable (no AUX, no COM1, no colons, etc.;-), so that it does not conflict with the users' regular sparse checkout selection in $GIT_DIR/info/sparse-checkout. It's probably easier to understand that way. -- Philip