Skip to content

Commit c70ddbe

Browse files
author
Git for Windows Build Agent
committed
Merge pull request #1004 from whoisj/nolock-env
Carry non-locking status value in the environment.
2 parents ec852fb + 2a99f74 commit c70ddbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

builtin/commit.c

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

1388+
if (no_lock_index)
1389+
setenv("GIT_LOCK_INDEX", "false", 1);
1390+
else if (!git_parse_maybe_bool(getenv("GIT_LOCK_INDEX")))
1391+
no_lock_index = 1;
1392+
13881393
handle_untracked_files_arg(&s);
13891394
if (show_ignored_in_status)
13901395
s.show_ignored_files = 1;

0 commit comments

Comments
 (0)