Commit ac54a4b
gitk: Catch mkdtemp errors
105b5d3 ("gitk: Use mktemp -d to avoid predictable temporary
directories") introduced a dependency on mkdtemp, which is not
available on Windows.
Use the original temporary directory behavior when mkdtemp fails.
This makes the code use mkdtemp when available and gracefully
fallback to the existing behavior when it is not available.
Helped-by: Junio C Hamano <[email protected]>
Helped-by: brian m. carlson <[email protected]>
Signed-off-by: David Aguilar <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>1 parent 105b5d3 commit ac54a4b
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3504 | 3504 | | |
3505 | 3505 | | |
3506 | 3506 | | |
3507 | | - | |
| 3507 | + | |
| 3508 | + | |
| 3509 | + | |
3508 | 3510 | | |
3509 | 3511 | | |
3510 | 3512 | | |
| |||
0 commit comments