{"thread":{"id":"25366","subject":"Re: Error on git clone","startedAt":"2010-10-06T10:34:00Z","lastAt":"2010-10-06T18:22:32Z","messageCount":3,"participants":["Hocapito Cheteamo","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"152755","messageId":"571212.33119.qm@web114615.mail.gq1.yahoo.com","threadId":"25366","inReplyTo":null,"subject":"Re: Error on git clone","fromName":"Hocapito Cheteamo","fromEmail":"hocapitocheteamo@yahoo.com","sentAt":"2010-10-06T10:34:00Z","receivedAt":"2010-10-06T10:34:00Z","isPatch":false,"sender":{"key":"hocapitocheteamo@yahoo.com","avatar":null},"body":"\nThanks to Sverre Rabbelier who reminded me to do a 'git init' to get rid of that \n\"Not a git repository' error.  So I did:\n\n$ mkdir sss3\n$ cd sss3\n$ git init\n$ git remote add origin git@github.com:XXX/YYY.git\n$ git fetch\nEnter passphrase for key 'C:\\.....\\privateKey':\nremote: Counting objects: 478, done.\nremote: Compressing objects: 100% (303/303), done.\nReceiving objects: 100% (478/478), 96.57 MiB | 166 KiB/s, done.\nResolving deltas: 100% (21/21), done.\nFrom github.com:XXX/YYY\n * [new branch]      master     -> origin/master\n$ git checkout -b master origin/master\nChecking out files: 43%\ntagging': Invalid argumenttory at 'public/images/tagging\n\nI'm still getting the same print over error messages. Thanks for any help that \nmight help me to resolve this perplexing problem.\nHoca\n\n\n\n\n\n----- Original Message ----\nFrom: Hocapito Cheteamo <hocapitocheteamo@yahoo.com>\nTo: Johannes Sixt <j.sixt@viscovery.net>\nCc: git@vger.kernel.org\nSent: Wed, October 6, 2010 12:50:13 AM\nSubject: Re: Error on git clone\n\n\nYes, this is with \"Git for Windows\" (a Git Bash Shell window).\n\nSo I did what you suggested:\n\nmkdir sss3\ncd sss3\ngit remote add origin git@github.com:XXX/YYY.git\n\nThen an error occurs:\nfatal: Not a git repository (or any of the parent directories): .git\n\nAny thoughts?\n\nThanks.\nHoca\n\n\n\n\n----- Original Message ----\nFrom: Johannes Sixt <j.sixt@viscovery.net>\nTo: Hocapito Cheteamo <hocapitocheteamo@yahoo.com>\nCc: git@vger.kernel.org\nSent: Wed, October 6, 2010 12:22:28 AM\nSubject: Re: Error on git clone\n\nAm 10/6/2010 10:13, schrieb Hocapito Cheteamo:\n> I could consistently reproduce the problem.  The command that I used is:\n>     git clone -v git@github.com:XXX/YYY.git sss\n> where XXX & YYY are replaced with the actual data.\n\nJust to make sure: This is with \"Git for Windows\", not Cygwin's git?\n\nDo the clone in separate the steps:\n\nmkdir sss\ncd sss\ngit remote add origin git@github.com:XXX/YYY.git\ngit fetch\ngit checkout -b master origin/master\n\nDo you see any errors?\n\n-- Hannes\n\n\n      \n"},{"id":"152756","messageId":"4CAC54CB.5020208@viscovery.net","threadId":"25366","inReplyTo":"571212.33119.qm@web114615.mail.gq1.yahoo.com","subject":"Re: Error on git clone","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2010-10-06T10:51:55Z","receivedAt":"2010-10-06T10:51:55Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 10/6/2010 12:34, schrieb Hocapito Cheteamo:\n> $ git fetch\n> Enter passphrase for key 'C:\\.....\\privateKey':\n> remote: Counting objects: 478, done.\n> remote: Compressing objects: 100% (303/303), done.\n> Receiving objects: 100% (478/478), 96.57 MiB | 166 KiB/s, done.\n> Resolving deltas: 100% (21/21), done.\n> From github.com:XXX/YYY\n>  * [new branch]      master     -> origin/master\n\nOk, download works as expected. You don't have to repeat these steps\nanymore. Keep a copy of sss3\\.git around so that you can go back to this\nstate when necessary.\n\n> $ git checkout -b master origin/master\n> Checking out files: 43%\n> tagging': Invalid argumenttory at 'public/images/tagging\n\nThe error message is this one:\n\ncannot create directory at '%s'\n\nDo you have a file/directory with a CR in it? When you run this:\n\n git -p ls-tree -r origin/master\n\nand look for public/images, do you see this:\n\n\"public/images/tagging\\rtagging\"\n\n(including the double-quotes)? If so, ask your upstream to fix the\nrepository; you can't checkout the data as is on Windows.\n\nAlternatively, you could use a sparse checkout that excludes the\nquestionable file. Read \"Sparse checkout\" in\nhttp://www.kernel.org/pub/software/scm/git/docs/git-read-tree.html\n\n-- Hannes\n"},{"id":"152773","messageId":"395557.10034.qm@web114610.mail.gq1.yahoo.com","threadId":"25366","inReplyTo":"4CAC54CB.5020208@viscovery.net","subject":"Re: Error on git clone","fromName":"Hocapito Cheteamo","fromEmail":"hocapitocheteamo@yahoo.com","sentAt":"2010-10-06T18:22:32Z","receivedAt":"2010-10-06T18:22:32Z","isPatch":false,"sender":{"key":"hocapitocheteamo@yahoo.com","avatar":null},"body":"Hi Hannes,\n\nAs you have expected, when I run that command,\n    git -p ls-tree -r origin/master > lll.txt\nand redirect it to a log file, the log file does show some lines that have:\n    \"public/images/tagging\\rtagging/title_add_tags_to.png\"\n\nTHANK YOU SO VERY MUCH for helping me in resolving the problem that I have \nencountered with the git clone command on my PC Windows XP system.  I'll \ndefinitely ask my upstream to fix the\nrepository on that 'CR'.  I'll also take a look at that \"sparse checkout\" that \nyou have mentioned.\n\nAgain, a big thank you for solving this perplexing problem, especially with the \nprint over log messages.  You rock!!!\nHoca\n\n\n\n\n----- Original Message ----\nFrom: Johannes Sixt <j.sixt@viscovery.net>\nTo: Hocapito Cheteamo <hocapitocheteamo@yahoo.com>\nCc: git@vger.kernel.org; Sverre Rabbelier <srabbelier@gmail.com>\nSent: Wed, October 6, 2010 2:51:55 AM\nSubject: Re: Error on git clone\n\nAm 10/6/2010 12:34, schrieb Hocapito Cheteamo:\n> $ git fetch\n> Enter passphrase for key 'C:\\.....\\privateKey':\n> remote: Counting objects: 478, done.\n> remote: Compressing objects: 100% (303/303), done.\n> Receiving objects: 100% (478/478), 96.57 MiB | 166 KiB/s, done.\n> Resolving deltas: 100% (21/21), done.\n> From github.com:XXX/YYY\n>  * [new branch]      master     -> origin/master\n\nOk, download works as expected. You don't have to repeat these steps\nanymore. Keep a copy of sss3\\.git around so that you can go back to this\nstate when necessary.\n\n> $ git checkout -b master origin/master\n> Checking out files: 43%\n> tagging': Invalid argumenttory at 'public/images/tagging\n\nThe error message is this one:\n\ncannot create directory at '%s'\n\nDo you have a file/directory with a CR in it? When you run this:\n\ngit -p ls-tree -r origin/master\n\nand look for public/images, do you see this:\n\n\"public/images/tagging\\rtagging\"\n\n(including the double-quotes)? If so, ask your upstream to fix the\nrepository; you can't checkout the data as is on Windows.\n\nAlternatively, you could use a sparse checkout that excludes the\nquestionable file. Read \"Sparse checkout\" in\nhttp://www.kernel.org/pub/software/scm/git/docs/git-read-tree.html\n\n-- Hannes\n\n\n\n      \n"}]}