Message ID | 20211201001126.4106635-3-keescook@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | patchwork-bot: Use worktrees for repos | expand |
diff --git a/git-patchwork-bot.py b/git-patchwork-bot.py index d1eac6c0c0df..dc10fd0effa9 100755 --- a/git-patchwork-bot.py +++ b/git-patchwork-bot.py @@ -1375,6 +1375,9 @@ if __name__ == '__main__': cfgyaml = fh.read() CONFIG = ruamel.yaml.safe_load(cfgyaml) + if not os.path.isdir(CACHEDIR): + os.makedirs(CACHEDIR, exist_ok=True) + if cmdargs.housekeeping: for _pserver, _sconfig in CONFIG['patchworks'].items(): for _pname in _sconfig['projects']:
Create the CACHEDIR if it is missing (e.g. the first time git-patchwork-bot is executed). Signed-off-by: Kees Cook <keescook@chromium.org> --- git-patchwork-bot.py | 3 +++ 1 file changed, 3 insertions(+)