{"thread":{"id":"38717","subject":"[PATCH] for the SoC15 micro project, Make \"git -C '' cmd\" not to barf.","startedAt":"2015-03-06T01:46:36Z","lastAt":"2015-03-06T11:54:56Z","messageCount":3,"participants":["Prudhvee Narasimha Sadha","Stefan Beller","Matthieu Moy"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"257122","messageId":"CAMS+ib3dDP6PmHvLJsSs-6XCy233gxjU6=+_7id8yuk9xTnCJQ@mail.gmail.com","threadId":"38717","inReplyTo":null,"subject":"[PATCH] for the SoC15 micro project, Make \"git -C '' cmd\" not to barf.","fromName":"Prudhvee Narasimha Sadha","fromEmail":"prudhvi.sada@gmail.com","sentAt":"2015-03-06T01:46:36Z","receivedAt":"2015-03-06T01:46:36Z","isPatch":true,"sender":{"key":"prudhvi.sada@gmail.com","avatar":null},"body":"Hi,\n    here is my patch for the micro project, Please review the code.\n\n\nprudh@prudh-Studio-1569:~/git$ git diff\ndiff --git a/git.c b/git.c\nindex 8c7ee9c..364788b 100644\n--- a/git.c\n+++ b/git.c\n@@ -205,6 +205,8 @@ static int handle_options(const char ***argv, int *argc, int\n                                usage(git_usage_string);\n                        }\n                        if (chdir((*argv)[1]))\n+                               if(*(*argv)[1]==0);\n+                       else if(chdir((*argv)[1]))\n                                die_errno(\"Cannot change to '%s'\", (*argv)[1]);\n                        if (envchanged)\n                                *envchanged = 1;\n\n\n\n\nThank you,\nPrudhvee\n"},{"id":"257123","messageId":"CAGZ79kYh=_U=YPrPU3k22ohtU5vgv_bQaETv+q3Dq+ssd3+A-A@mail.gmail.com","threadId":"38717","inReplyTo":"CAMS+ib3dDP6PmHvLJsSs-6XCy233gxjU6=+_7id8yuk9xTnCJQ@mail.gmail.com","subject":"Re: [PATCH] for the SoC15 micro project, Make \"git -C '' cmd\" not to barf.","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2015-03-06T01:58:50Z","receivedAt":"2015-03-06T01:58:50Z","isPatch":true,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Thu, Mar 5, 2015 at 5:46 PM, Prudhvee Narasimha Sadha\n<prudhvi.sada@gmail.com> wrote:\n> Hi,\n>     here is my patch for the micro project, Please review the code.\n>\n>\n> prudh@prudh-Studio-1569:~/git$ git diff\n\nPlease see Documentation/SubmittingPatches and maybe have a look\nat the format-patch manpage.\n\nThanks,\nStefan\n\n\n> diff --git a/git.c b/git.c\n> index 8c7ee9c..364788b 100644\n> --- a/git.c\n> +++ b/git.c\n> @@ -205,6 +205,8 @@ static int handle_options(const char ***argv, int *argc, int\n>                                 usage(git_usage_string);\n>                         }\n>                         if (chdir((*argv)[1]))\n> +                               if(*(*argv)[1]==0);\n> +                       else if(chdir((*argv)[1]))\n>                                 die_errno(\"Cannot change to '%s'\", (*argv)[1]);\n>                         if (envchanged)\n>                                 *envchanged = 1;\n>\n>\n>\n>\n> Thank you,\n> Prudhvee\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"257154","messageId":"vpqzj7qcpdb.fsf@anie.imag.fr","threadId":"38717","inReplyTo":"CAMS+ib3dDP6PmHvLJsSs-6XCy233gxjU6=+_7id8yuk9xTnCJQ@mail.gmail.com","subject":"Re: [PATCH] for the SoC15 micro project, Make \"git -C '' cmd\" not to barf.","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2015-03-06T11:54:56Z","receivedAt":"2015-03-06T11:54:56Z","isPatch":true,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Prudhvee Narasimha Sadha <prudhvi.sada@gmail.com> writes:\n\n> Hi,\n>     here is my patch for the micro project, Please review the code.\n\nPlease, read Documentation/SubmittingPatches.\n\nAlso, read the comments on the other submission for the same problem on\nthe list, they also apply to your version.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"}]}