format-patch: make --base patch-id output stable
[gitweb.git] / builtin / update-index.c
index ff5cfd11948593984c791a0f922351343019f4cf..890c251d665a1b6800b87cc6ee0fcb04a3f9f538 100644 (file)
@@ -1081,6 +1081,8 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
        if (entries < 0)
                die("cache corrupted");
 
+       the_index.updated_skipworktree = 1;
+
        /*
         * Custom copy of parse_options() because we want to handle
         * filename arguments as they come.