{"thread":{"id":"26575","subject":"Problem with git shell on mac","startedAt":"2011-02-22T14:39:06Z","lastAt":"2011-02-23T11:25:29Z","messageCount":3,"participants":["Luka Kac","Jay Soffian"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"161881","messageId":"60BD7CF3-7781-4BEC-9545-8B653F62F32E@sis.si","threadId":"26575","inReplyTo":null,"subject":"Problem with git shell on mac","fromName":"Luka Kac","fromEmail":"luka.kac@sis.si","sentAt":"2011-02-22T14:39:06Z","receivedAt":"2011-02-22T14:39:06Z","isPatch":false,"sender":{"key":"luka.kac@sis.si","avatar":null},"body":"Hi guys.\n\nI have a problem with git on a Mac os server.\na program is trying to run git shell with this command :\n\ngit shell -c git-upload-pack '/path/to/repo.git'\n\nthe process dies on an assert in exec_cmd.c :\n\nAssertion failed: (argv0_path), function system_path, file exec_cmd.c, line 27.\nerror: git-shell died of signal 6\n\n\nwhat could be wrong ? is the argv0_path path to the git-upload-pack executable ? I'm pretty sure that it is in path because ssh git@server \\echo $PATH contains the path to git.\n\nWhat else should I do ?\n\nThanks for your help."},{"id":"161915","messageId":"AANLkTikuYHY9a+PWp63fP_+Up1YaW5gTH2LiQq7kQV1V@mail.gmail.com","threadId":"26575","inReplyTo":"60BD7CF3-7781-4BEC-9545-8B653F62F32E@sis.si","subject":"Re: Problem with git shell on mac","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2011-02-22T22:34:00Z","receivedAt":"2011-02-22T22:34:00Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Tue, Feb 22, 2011 at 9:39 AM, Luka Kac <luka.kac@sis.si> wrote:\n> Hi guys.\n>\n> I have a problem with git on a Mac os server.\n> a program is trying to run git shell with this command :\n>\n> git shell -c git-upload-pack '/path/to/repo.git'\n>\n> the process dies on an assert in exec_cmd.c :\n>\n> Assertion failed: (argv0_path), function system_path, file exec_cmd.c, line 27.\n> error: git-shell died of signal 6\n>\n>\n> what could be wrong ? is the argv0_path path to the git-upload-pack executable ? I'm pretty sure that it is in path because ssh git@server \\echo $PATH contains the path to git.\n>\n> What else should I do ?\n\nYour binary appears to have been compiled with RUNTIME_PREFIX set.\nThis is (AFAIK) only enabled by default under Cygwin/MinGW. In any\ncase, I believe it requires that you invoke git using an absolute\npath.\n\nTry /path/to/git shell  ...\n\nj.\n"},{"id":"162019","messageId":"2F352739-EDBA-44A7-8B8C-C6B41DB386F5@sis.si","threadId":"26575","inReplyTo":"AANLkTikuYHY9a+PWp63fP_+Up1YaW5gTH2LiQq7kQV1V@mail.gmail.com","subject":"Re: Problem with git shell on mac","fromName":"Luka Kac","fromEmail":"luka.kac@sis.si","sentAt":"2011-02-23T11:25:29Z","receivedAt":"2011-02-23T11:25:29Z","isPatch":false,"sender":{"key":"luka.kac@sis.si","avatar":null},"body":"\nOn 22.2.2011, at 23:34, Jay Soffian wrote:\n\n> On Tue, Feb 22, 2011 at 9:39 AM, Luka Kac <luka.kac@sis.si> wrote:\n>> Hi guys.\n>> \n>> I have a problem with git on a Mac os server.\n>> a program is trying to run git shell with this command :\n>> \n>> git shell -c git-upload-pack '/path/to/repo.git'\n>> \n>> the process dies on an assert in exec_cmd.c :\n>> \n>> Assertion failed: (argv0_path), function system_path, file exec_cmd.c, line 27.\n>> error: git-shell died of signal 6\n>> \n>> \n>> what could be wrong ? is the argv0_path path to the git-upload-pack executable ? I'm pretty sure that it is in path because ssh git@server \\echo $PATH contains the path to git.\n>> \n>> What else should I do ?\n> \n> Your binary appears to have been compiled with RUNTIME_PREFIX set.\n> This is (AFAIK) only enabled by default under Cygwin/MinGW. In any\n> case, I believe it requires that you invoke git using an absolute\n> path.\n> \n> Try /path/to/git shell  ...\n> \n> j.\n\nThank you. That worked."}]}