diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2021-02-12 15:51:12 +0100 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2021-02-12 15:51:12 +0100 |
commit | e4e68081bb811672b069eb1d6c97e57dd0764d51 (patch) | |
tree | ac9c0610ed0f5dad5cfe6b197080c460822a6040 /run-command.c | |
parent | 59ec22464f6c2b170b05f287e00740ea2288fe5c (diff) | |
parent | 0628636d0c21324ae0f11be591611c6b1e55705f (diff) |
Sync with 2.29.3
* maint-2.29: Git 2.29.3 Git 2.28.1 Git 2.27.1 Git 2.26.3 Git 2.25.5 Git 2.24.4 Git 2.23.4 Git 2.22.5 Git 2.21.4 Git 2.20.5 Git 2.19.6 Git 2.18.5 Git 2.17.6 unpack_trees(): start with a fresh lstat cache run-command: invalidate lstat cache after a command finished checkout: fix bug that makes checkout follow symlinks in leading path
Diffstat (limited to 'run-command.c')
-rw-r--r-- | run-command.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/run-command.c b/run-command.c index ea4d0fb4b1..25fbab2a9c 100644 --- a/run-command.c +++ b/run-command.c @@ -990,6 +990,7 @@ int finish_command(struct child_process *cmd) int ret = wait_or_whine(cmd->pid, cmd->argv[0], 0); trace2_child_exit(cmd, ret); child_process_clear(cmd); + invalidate_lstat_cache(); return ret; } @@ -1291,13 +1292,19 @@ error: int finish_async(struct async *async) { #ifdef NO_PTHREADS - return wait_or_whine(async->pid, "child process", 0); + int ret = wait_or_whine(async->pid, "child process", 0); + + invalidate_lstat_cache(); + + return ret; #else void *ret = (void *)(intptr_t)(-1); if (pthread_join(async->tid, &ret)) error("pthread_join failed"); + invalidate_lstat_cache(); return (int)(intptr_t)ret; + #endif } |