driusan / bug

Distributed bug tracking with the filesystem and hg or git
GNU General Public License v3.0
205 stars 7 forks source link

bug create does not check for existance of issues directory before firing editor #16

Closed strk closed 5 years ago

strk commented 8 years ago

Presence of an issue directory set via PMIT is not checked upfront, but only after writing a bug description. Would be helpful to know before spending time in writing the description

strk commented 8 years ago

Moreover, after your editor told you it could not write the new file (as the directory did not exist) you still get an Created issue: ... message, like if the bug create did not check return code from editor (which most likely returned a non-zero code).

strk commented 8 years ago

Ok, taking back the last comment, vim is actually existing with code 0 when force-quitting with :q!

strk commented 8 years ago

I think other tools (like mutt) use a temporary file buffer while editing, and perform some checks at the end (like empty file -> error)