projects
/
gimrr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73de054
)
git-mr-reply: create revs dir if it doesn't exist
author
Frantisek Hrbata
<frantisek@hrbata.com>
Sun, 20 Dec 2020 12:19:07 +0000
(13:19 +0100)
committer
Frantisek Hrbata
<frantisek@hrbata.com>
Sun, 20 Dec 2020 12:19:07 +0000
(13:19 +0100)
Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
git-mr-reply
patch
|
blob
|
history
diff --git
a/git-mr-reply
b/git-mr-reply
index 10dc573548db00fa9151bc513e7022485f35c687..fe4eea14cdd7fd2da7348ffab98939163b1f441d 100755
(executable)
--- a/
git-mr-reply
+++ b/
git-mr-reply
@@
-95,6
+95,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)