{"thread":{"id":"45311","subject":"Re: GSoC 2017","startedAt":"2017-03-07T23:54:03Z","lastAt":"2017-03-07T23:54:03Z","messageCount":1,"participants":["Valery Tolstov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"313467","messageId":"1488928920.8812.2@smtp.yandex.ru","threadId":"45311","inReplyTo":null,"subject":"Re: GSoC 2017","fromName":"Valery Tolstov","fromEmail":"me@vtolstov.org","sentAt":"2017-03-07T23:22:00Z","receivedAt":"2017-03-07T23:54:03Z","isPatch":false,"sender":{"key":"me@vtolstov.org","avatar":"https://avatars.githubusercontent.com/u/1188278?v=4"},"body":"Decided to rewrite module_clone to use connect_work_tree_and_git_dir\nas my microproject by suggestion of Stefan Bellar.\nhttps://public-inbox.org/git/CAGZ79kY+1E-wg0-uzGJmE+haOE+1WCmg0Eux7rWGtkU_aBDQ9g@mail.gmail.com/\n\nIt seems that connect_work_tree_and_git_dir needs to be slightly changed\nto deal with submodules. Because path to config file for submodules lies\nnot directly in .git directory we need to know whether the path is\nsubmodule or not. Can I use submodule_from_path to determine this?\nI mean what if NULL result also indicates error sometimes?\n\nAnother possible solution is to pass the flag indicating\nthat path is submodule or not. But I think this solution is bad.\n\n\nRegards,\n  Valery Tolstov\n\n\n\n"}]}