Skip to content

Commit 5d59ab4

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 fee9f6f + 6140afe commit 5d59ab4

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
@@ -1397,6 +1397,11 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13971397
finalize_colopts(&s.colopts, -1);
13981398
finalize_deferred_config(&s);
13991399

1400+
if (no_lock_index)
1401+
setenv("GIT_LOCK_INDEX", "false", 1);
1402+
else if (!git_parse_maybe_bool(getenv("GIT_LOCK_INDEX")))
1403+
no_lock_index = 1;
1404+
14001405
handle_untracked_files_arg(&s);
14011406
if (show_ignored_in_status)
14021407
s.show_ignored_files = 1;

0 commit comments

Comments
 (0)