worktree: rename is_worktree_locked to worktree_lock_reason
[gitweb.git] / builtin / am.c
index d79f092a96f8e9aab59c6d6c623c8fd7fbcb677d..3ee9a9d2a92aaa0e9716719640deaec7e260c811 100644 (file)
@@ -2328,7 +2328,7 @@ int cmd_am(int argc, const char **argv, const char *prefix)
        /* Ensure a valid committer ident can be constructed */
        git_committer_info(IDENT_STRICT);
 
-       if (read_index_preload(&the_index, NULL) < 0)
+       if (read_index_preload(&the_index, NULL, 0) < 0)
                die(_("failed to read the index"));
 
        if (in_progress) {