cache_tree_update: give an option to update cache-tree only.
[git/git.git] / write-tree.c
index a506992..7a4f691 100644 (file)
@@ -41,7 +41,7 @@ int main(int argc, char **argv)
        if (!was_valid) {
                if (cache_tree_update(active_cache_tree,
                                      active_cache, active_nr,
-                                     missing_ok) < 0)
+                                     missing_ok, 0) < 0)
                        die("git-write-tree: error building trees");
                if (0 <= newfd) {
                        if (!write_cache(newfd, active_cache, active_nr))