]> git.ipfire.org Git - thirdparty/git.git/blobdiff - revision.c
diff: factor out --follow pathspec check
[thirdparty/git.git] / revision.c
index fb090886f5ba0367f853a52b5584261b595d05f4..21f5f572c22ec7054da6bc20fef26ee2a59a19d5 100644 (file)
@@ -1813,7 +1813,7 @@ void add_index_objects_to_pending(struct rev_info *revs, unsigned int flags)
        worktrees = get_worktrees();
        for (p = worktrees; *p; p++) {
                struct worktree *wt = *p;
-               struct index_state istate = INDEX_STATE_INIT;
+               struct index_state istate = INDEX_STATE_INIT(revs->repo);
 
                if (wt->is_current)
                        continue; /* current index already taken care of */