git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Andreas Schrell <as@schrell.de>
Cc: git@vger.kernel.org
Subject: Re: Program path added to sparse file specification if leading slash is used
Date: Fri, 9 Dec 2022 08:57:20 +0100 (CET)	[thread overview]
Message-ID: <s53q2s3o-8nsr-0766-rr8p-6n7ro0o07p69@tzk.qr> (raw)
In-Reply-To: <db69818f32a2723cb7ef9ddf79d3ae39@schrell.de>

Hi Andreas,

On Mon, 28 Nov 2022, Andreas Schrell wrote:

> What did you do before the bug happened? (Steps to reproduce your issue)
>
> $ git sparse-checkout set /Workspace/Build/Pipeline
> $ git sparse-checkout list C:/Program Files/Git/Workspace/Build/Pipeline

From Git for Windows' release notes, in the "Known Issues" section,
https://github.com/git-for-windows/build-extra/blob/main/ReleaseNotes.md#known-issues:


	If you specify command-line options starting with a slash,
	POSIX-to-Windows path conversion will kick in converting e.g.
	"/usr/bin/bash.exe" to "C:\Program Files\Git\usr\bin\bash.exe". When that
	is not desired -- e.g. "--upload-pack=/opt/git/bin/git-upload-pack" or
	"-L/regex/" -- you need to set the environment variable MSYS_NO_PATHCONV
	temporarily, like so:

	    MSYS_NO_PATHCONV=1 git blame -L/pathconv/ msys2_path_conv.cc

	    Alternatively, you can double the first slash to avoid
	    POSIX-to-Windows path conversion, e.g. "//usr/bin/bash.exe".

Ciao,
Johannes

      reply	other threads:[~2022-12-09  7:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-28 13:10 Program path added to sparse file specification if leading slash is used Andreas Schrell
2022-12-09  7:57 ` Johannes Schindelin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s53q2s3o-8nsr-0766-rr8p-6n7ro0o07p69@tzk.qr \
    --to=johannes.schindelin@gmx.de \
    --cc=as@schrell.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).