{"thread":{"id":"59255","subject":"When using git commit in a path with spaces, it prompts Cannot read \"xxx\": No such file or directory","startedAt":"2023-02-16T16:10:01Z","lastAt":"2023-03-27T08:34:41Z","messageCount":2,"participants":["L2750558108@outlook.com","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"472202","messageId":"BY5PR14MB35605DDFA6C7F6CD9DF89202B1A09@BY5PR14MB3560.namprd14.prod.outlook.com","threadId":"59255","inReplyTo":null,"subject":"When using git commit in a path with spaces, it prompts Cannot read \"xxx\": No such file or directory","fromName":"L2750558108@outlook.com","fromEmail":"l2750558108@outlook.com","sentAt":"2023-02-16T16:09:46Z","receivedAt":"2023-02-16T16:10:01Z","isPatch":false,"sender":{"key":"l2750558108@outlook.com","avatar":"https://gravatar.com/avatar/d660aedf7309af6cb004f0f08cf6946c8dd674b9a777699fa4857e0bdf2e0c58?d=mp&s=160"},"body":"In Windows\nWhen using git commit in a path with spaces, it prompts Cannot read \"xxx\": No such file or directory\n\nReduce:\n1.Init a respository at \"C:/te st\";\n2.cd \"C:/te st\"\n3.git add .\n4.git commit\n5.fatal: could not read 'C:/te': No such file or directory"},{"id":"474221","messageId":"ca58a4a2-dd73-26f5-9d2f-13a658bbaa9b@gmx.de","threadId":"59255","inReplyTo":"BY5PR14MB35605DDFA6C7F6CD9DF89202B1A09@BY5PR14MB3560.namprd14.prod.outlook.com","subject":"Re: When using git commit in a path with spaces, it prompts Cannot read \"xxx\": No such file or directory","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2023-03-27T08:28:44Z","receivedAt":"2023-03-27T08:34:41Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Fri, 17 Feb 2023, L2750558108@outlook.com wrote:\n\n> In Windows\n> When using git commit in a path with spaces, it prompts Cannot read \"xxx\": No such file or directory\n>\n> Reduce:\n> 1.Init a respository at \"C:/te st\";\n> 2.cd \"C:/te st\"\n> 3.git add .\n> 4.git commit\n> 5.fatal: could not read 'C:/te': No such file or directory\n\nI suspect that your Git version is basically super old, but I cannot know\nfor sure because vital information has been omitted from this bug report.\n\nAnd I cannot reproduce (this was done in a PowerShell window):\n\n\tPS C:\\> git init \"te st\"\n\tInitialized empty Git repository in C:/te st/.git/\n\tPS C:\\> cd \"te st\"\n\tPS C:\\te st> git add .\n\tPS C:\\te st> git commit\n\tOn branch main\n\n\tInitial commit\n\n\tnothing to commit (create/copy files and use \"git add\" to track)\n\tPS C:\\te st> git commit --allow-empty -m \"works!\"\n\t[main (root-commit) 0d51f36] works!\n\tPS C:\\te st>\n\nIn other words, Git has no problem with the space in the working\ndirectory's path.\n\nCiao,\nJohannes\n"}]}