]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/apply.c
apply, entry: speak of submodules instead of subprojects
[thirdparty/git.git] / builtin / apply.c
index 30eefc3c7b390800e9452a06da18208d2fef4f11..14c91bf35ad185edfefc79d5e33285d7711e067f 100644 (file)
@@ -906,7 +906,7 @@ static void parse_traditional_patch(const char *first, const char *second, struc
                        patch->old_name = name;
                } else {
                        patch->old_name = name;
-                       patch->new_name = xstrdup(name);
+                       patch->new_name = null_strdup(name);
                }
        }
        if (!name)
@@ -3847,7 +3847,7 @@ static void add_index_file(const char *path, unsigned mode, void *buf, unsigned
                const char *s = buf;
 
                if (get_sha1_hex(s + strlen("Subproject commit "), ce->sha1))
-                       die(_("corrupt patch for subproject %s"), path);
+                       die(_("corrupt patch for submodule %s"), path);
        } else {
                if (!cached) {
                        if (lstat(path, &st) < 0)