Re: [PATCH 01/12] for_each_alternate_ref: handle failure from real_pathdup()

2017-01-25 Thread Junio C Hamano
Jeff King writes: > In older versions of git, if real_path() failed to resolve > the alternate object store path, we would die() with an > error. However, since 4ac9006f8 (real_path: have callers use > real_pathdup and strbuf_realpath, 2016-12-12) we use the > real_pathdup()

[PATCH 01/12] for_each_alternate_ref: handle failure from real_pathdup()

2017-01-23 Thread Jeff King
In older versions of git, if real_path() failed to resolve the alternate object store path, we would die() with an error. However, since 4ac9006f8 (real_path: have callers use real_pathdup and strbuf_realpath, 2016-12-12) we use the real_pathdup() function, which may return NULL. Since we don't