Merge branch 'bp/post-index-change-hook'
[gitweb.git] / builtin / update-index.c
index 1b6c42f748fd52ece4cf5f109f92a50bc2a87be3..73fe04e1c2e45a46af6ea561be28e8831498b6d4 100644 (file)
@@ -1082,6 +1082,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.