RE: [PATCH 13/16] submodule: teach unpack_trees() to update submodules
From: David Turner <hidden>
Date: 2016-11-21 18:12:39
From: David Turner <hidden>
Date: 2016-11-21 18:12:39
-----Original Message----- From: Stefan Beller [mailto:sbeller@google.com]
quoted
quoted
+ if (submodule_is_interesting(old->name,null_sha1)quoted
quoted
+ && ok_to_remove_submodule(old->name)) + return 0; + }Do we need a return 1 in here somewhere? Because otherwise, we fallthrough and return 0 later. Otherwise we would fall through and run if (errno == ENOENT) return 0; return o->gently ? -1 : add_rejected_path(o, error_type, ce->name); which produces different results than 0?
Oh, I see. I was misreading that errno check.