From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 3DA371F66E for ; Fri, 14 Aug 2020 22:42:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728117AbgHNWmD (ORCPT ); Fri, 14 Aug 2020 18:42:03 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:36617 "EHLO mail-wr1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbgHNWmD (ORCPT ); Fri, 14 Aug 2020 18:42:03 -0400 Received: by mail-wr1-f42.google.com with SMTP id 88so9633460wrh.3 for ; Fri, 14 Aug 2020 15:42:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=D3nrwEJ79YPcg9qqw0GP6dRoWjUU0MqIbn91z5xSTvQ=; b=U2z7GTZBNoV32ThXhhNUMvL/NCVAEkx/141I8aEjk3KHOd8T6DpTHP1emqTXTtmMzV aZzEETmSs4LI3MKwNQmAbYHtc2Fck50WWrAQueDlY0I9nEh4DhYAYo8LfKgbMYdYofDt RXwnbyR9PrGE/GVoMX00CL5rnRe6eFuNLITMge4JEwyqwhTCEL53vFn17Rud5T7QQexN m1DwKMw0t1KlrqnlP7Wuc3TrvuVCzr9s4EnoqGwmKNCAlGIWeL/UFb49XeVz9pgkbl3I iGollZBpuaK/EWWCpBKC0r7a27mTNTxjpj52BO+wODeti+jNbPxUiI+njTBLcMbhECH/ lqSg== X-Gm-Message-State: AOAM533pE5LxBnKsjzRo+tAQ02AKjzNioF/xiH3bPBsfbWfFhAcUwTQ5 7ByjBMOHkWpDHlXJqqo4OsbT/x1VOorAj7p8R1s= X-Google-Smtp-Source: ABdhPJwo2GUbyGEGcx/JUX4PaZhT9qGyqwSNdx3bPJuj2MLVsDqZWaSfSwZ4wT9r3HeGQu+H6alF2zhch7Iynts4fdM= X-Received: by 2002:adf:ec45:: with SMTP id w5mr4471644wrn.415.1597444922100; Fri, 14 Aug 2020 15:42:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Eric Sunshine Date: Fri, 14 Aug 2020 18:41:51 -0400 Message-ID: Subject: Re: Possible bug with git restore To: Sergii Shkarnikov Cc: Git List Content-Type: text/plain; charset="UTF-8" Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Wed, Aug 12, 2020 at 2:51 PM Sergii Shkarnikov wrote: > I tried to restore a couple of files from an earlier commit > running the restore command with a wildcard: > > git restore -s HEAD~ -- */filename.* > > In my work tree those are .cpp and .hpp files stored in different folders. > Both files were deleted (and got (delete) status). > Running this command without wildcards for each file separately > works as expected. Thanks for the report. Can you provide a complete recipe in the form of shell command to make this happen so others can reproduce the behavior? Doing so will help track down the issue. Also, since this is Windows, do the cases of the filenames in the referenced commit match the cases actually on the filesystem (and have the cases changed between commits)?