diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2021-02-12 15:49:59 +0100 |
|---|---|---|
| committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2021-02-12 15:49:59 +0100 |
| commit | 8f80393c147832a5ef56929d47406b14f3a8960d (patch) | |
| tree | c6e97cde88dd07f8e4c4d38b539c4dd2c24f63d4 /run-command.c | |
| parent | af6b65d45ef179ed52087e80cb089f6b2349f4ec (diff) | |
| parent | 42ce4c7930ff494136256554cbed730857084c70 (diff) | |
| download | git-8f80393c147832a5ef56929d47406b14f3a8960d.tar.xz | |
Sync with 2.25.5
* maint-2.25:
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 f5e1149f9b..b5abc98fed 100644 --- a/run-command.c +++ b/run-command.c @@ -989,6 +989,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; } @@ -1289,13 +1290,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 } |
