Skip to content

Commit 809bbdc

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 ea880ad + 57b5a73 commit 809bbdc

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
@@ -1378,6 +1378,11 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13781378
finalize_colopts(&s.colopts, -1);
13791379
finalize_deferred_config(&s);
13801380

1381+
if (no_lock_index)
1382+
setenv("GIT_LOCK_INDEX", "false", 1);
1383+
else if (!git_parse_maybe_bool(getenv("GIT_LOCK_INDEX")))
1384+
no_lock_index = 1;
1385+
13811386
handle_untracked_files_arg(&s);
13821387
if (show_ignored_in_status)
13831388
s.show_ignored_files = 1;

0 commit comments

Comments
 (0)