Thread (43 messages) 43 messages, 4 authors, 2016-12-03

RE: [PATCH 13/16] submodule: teach unpack_trees() to update submodules

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 fall
through 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help