Commit 2851e36
authored
Check whether TmpGitNamespace request path exists before removing (#1316)
When TmpGitNamespace is dropped before any filtering / git work is done,
for example due to an unrelated error, it will attempt to remove
directory that doesn't exist because no code that actually uses the
namespace path has run. This adds a check before remove_dir_all call to
prevent tracing spam.
commit-id:9feb11b71 parent dd07045 commit 2851e36
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| 802 | + | |
802 | 803 | | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
810 | 814 | | |
811 | 815 | | |
812 | 816 | | |
| |||
0 commit comments