On Mon, Feb 5, 2018 at 8:20 PM, Eric Sunshine <sunshine@xxxxxxxxxxxxxx> wrote: > Or just combine these two error cases: > > if (submodule_to_gitdir(...) || repo_init(...)) { > strbuf_release(...); > return -1; > } will fix, thanks!
On Mon, Feb 5, 2018 at 8:20 PM, Eric Sunshine <sunshine@xxxxxxxxxxxxxx> wrote: > Or just combine these two error cases: > > if (submodule_to_gitdir(...) || repo_init(...)) { > strbuf_release(...); > return -1; > } will fix, thanks!