git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Sparse checkout not working as expected (colons in filenames on Windows)

From
Duy Nguyen <pclouds@gmail.com>
Date
Mar 25, 2015, 00:46 UTC
Message-ID
<CACsJy8AACwDPSEWdGiLLK3PTY=hLm0XOvN4_y4PbCFYrMzrnHg@mail.gmail.com>
In-Reply-To
<90D5D4B5F2ED41A6AB07E291004AA615@PhilipOakley>
On Wed, Mar 25, 2015 at 6:50 AM, Philip Oakley <philipoakley@iee.org> wrote:
> I've corrected the sparse-checkout, but won't the command line 'git
> update-index --skip-worktree' will still need it? (demo commands below)

A "git checkout" (without arguments) or "read-trree -mu" should attach skip-worktree properly. You don't need to do it yourself.

Show 7 quoted lines
> That said, the final error (which I'd missed in the earlier post) is:
> fatal: make_cache_entry failed for path 'ifcfg-eth0:0'
>
> This is on the Windows (pre-compiled msysgit at v1.9.5) Git bash, so could
> be a catch path in that code for make_cache_entry (I've not checked the code
> yet). So at the moment it doesn't look like sparse checkout can be used to
> avoid colons in windows on-disk files based on the current code.

Both of your commands below fail by the same function, verify_path() because of this msysgit commit 2e2a2d1 (NTFS: Prevent problematic paths from being checked out - 2014-12-10). I guess that check is a bit too strong, it should apply when new index entries are created from worktree (not from a tree)..

Show 14 quoted lines
> --
> Philip
>
> Philip@PHILIPOAKLEY /d/Git_repos/colons
> $ cd tortoisegit-colons/
>
> Philip@PHILIPOAKLEY /d/Git_repos/colons/tortoisegit-colons (test)
> $ git update-index --skip-worktree -- ifcfg-eth0\:0
> Ignoring path ifcfg-eth0:0
>
> Philip@PHILIPOAKLEY /d/Git_repos/colons/tortoisegit-colons (test)
> $ git reset
> error: Invalid path 'ifcfg-eth0:0'
> fatal: make_cache_entry failed for path 'ifcfg-eth0:0'
-- 
Duy

-- 
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Git for Windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Previous: Philip OakleyNext: Johannes Schindelin
Message 4 of 7 in “Sparse checkout not working as expected (colons in filenames on Windows)”
  1. Philip OakleyMar 19, 2015
  2. Duy NguyenMar 24, 2015
  3. Philip OakleyMar 24, 2015
  4. Duy NguyenMar 25, 2015
  5. Johannes SchindelinMar 25, 2015
  6. Duy NguyenMar 25, 2015
  7. Johannes SchindelinMar 25, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.