Skip to content

Commit 0ccd8ca

Browse files
committed
fixup! Introduce helper to create symlinks that knows about index_state
We do not actually need to test for `state != NULL`, as `state->delayed_checkout` had already been accessed before this. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ea7a305 commit 0ccd8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static int write_entry(struct cache_entry *ce,
289289
if (!has_symlinks || to_tempfile)
290290
goto write_file_entry;
291291

292-
ret = create_symlink(state ? state->istate : NULL, new_blob, path);
292+
ret = create_symlink(state->istate, new_blob, path);
293293
free(new_blob);
294294
if (ret)
295295
return error_errno("unable to create symlink %s", path);

0 commit comments

Comments
 (0)