Skip to content

Commit 8de0b6e

Browse files
committed
fixup! Carry non-locking status value in the environment.
As we now rely on the new --no-optional-locks feature, which is itself implemented via an environment variable, we no longer need to implement this ourselves. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent fe8b815 commit 8de0b6e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

builtin/commit.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,11 +1406,6 @@ int cmd_status(int argc, const char **argv, const char *prefix)
14061406
finalize_colopts(&s.colopts, -1);
14071407
finalize_deferred_config(&s);
14081408

1409-
if (no_lock_index)
1410-
setenv("GIT_LOCK_INDEX", "false", 1);
1411-
else if (!git_parse_maybe_bool(getenv("GIT_LOCK_INDEX")))
1412-
no_lock_index = 1;
1413-
14141409
handle_untracked_files_arg(&s);
14151410
handle_ignored_arg(&s);
14161411

0 commit comments

Comments
 (0)