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

Fw: Error on git clone

From
HCHocapito Cheteamo <hocapitocheteamo@yahoo.com>
Date
Oct 6, 2010, 20:03 UTC
Message-ID
<961094.44125.qm@web114619.mail.gq1.yahoo.com>
Hi Hannes,

I'd like to follow up on your recommendation of using sparse checkout to resolve that CR-in-directory-name problem.

According to my upstream, they can't change that directory name. It works fine on all their Mac systems. I'm the first one using the PC system. So I have to resort to the sparse checkout.

This is what I did:
1. Created a file .git/info/sparse-checkout that contains these lines:
*
!title_add_tags_to.png
!title_tagging.png

The above two files are the only ones that are listed in that problematic directory name "public/images/tagging\rtagging/".

2. To enable sparsecheckout, modified file .git/config:
[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
    hideDotFiles = dotGitOnly
    sparsecheckout = true  <------- added this line
[remote "origin"]
    url = git@github.com:XXX/YYY.git
    fetch = +refs/heads/*:refs/remotes/origin/*

Then I issued the command $ git checkout -b master origin/master Checking out files: 100% (937/937), done. Branch master set up to track remote branch master from origin. Already on 'master'

Voila, it works. That "tagging\rtagging/" directory was not created in folder "public/images/".

Thanks. Hoca

      
Message 1 of 1 in “Fw: Error on git clone”
  1. Hocapito CheteamoOct 6, 2010

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.