From 73de054d01a809199a4773da51216f86f551e7b5 Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Sun, 20 Dec 2020 13:18:40 +0100 Subject: [PATCH] git-mr-comment-show: create revs dir if it doesn't exist Signed-off-by: Frantisek Hrbata --- git-mr-comment-show | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-mr-comment-show b/git-mr-comment-show index 0463245..ce17dfc 100755 --- a/git-mr-comment-show +++ b/git-mr-comment-show @@ -77,6 +77,8 @@ if args.write_revs: else: revs_path = os.environ.get('HOME') + "/" + ".gimrr/comment.revs" +os.makedirs(os.path.dirname(revs_path), exist_ok=True) + fd = open(revs_path, "a+") fd.seek(0) fcntl.lockf(fd.fileno(), fcntl.LOCK_SH | fcntl.LOCK_NB) -- 1.7.10.4