diff --git a/pit.nimble b/pit.nimble index 1665157..a03ee4e 100644 --- a/pit.nimble +++ b/pit.nimble @@ -1,6 +1,6 @@ # Package -version = "4.9.1" +version = "4.9.2" author = "Jonathan Bernard" description = "Personal issue tracker." license = "MIT" diff --git a/src/pitpkg/private/libpit.nim b/src/pitpkg/private/libpit.nim index 81a7521..2f79285 100644 --- a/src/pitpkg/private/libpit.nim +++ b/src/pitpkg/private/libpit.nim @@ -170,6 +170,7 @@ proc loadIssueById*(tasksDir, id: string): Issue = raise newException(KeyError, "cannot find issue for id: " & id) proc store*(issue: Issue, withComments = false) = + discard existsOrCreateDir(issue.filePath.parentDir) writeFile(issue.filepath, toStorageFormat(issue, withComments)) proc store*(tasksDir: string, issue: Issue, state: IssueState, withComments = false) = diff --git a/src/pitpkg/version.nim b/src/pitpkg/version.nim index 291b220..cf7dc3b 100644 --- a/src/pitpkg/version.nim +++ b/src/pitpkg/version.nim @@ -1 +1 @@ -const PIT_VERSION* = "4.9.1" \ No newline at end of file +const PIT_VERSION* = "4.9.2" \ No newline at end of file