{"thread":{"id":"4368","subject":"[PATCH] cg-commit -p tries to remove a non-existent file","startedAt":"2006-06-01T15:14:27Z","lastAt":"2006-06-01T15:14:27Z","messageCount":1,"participants":["Dennis Stosberg"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"21057","messageId":"20060601151427.G51985817@leonov.stosberg.net","threadId":"4368","inReplyTo":null,"subject":"[PATCH] cg-commit -p tries to remove a non-existent file","fromName":"Dennis Stosberg","fromEmail":"dennis@stosberg.net","sentAt":"2006-06-01T15:14:27Z","receivedAt":"2006-06-01T15:14:27Z","isPatch":true,"sender":{"key":"dennis@stosberg.net","avatar":null},"body":"This produces an error message when the user aborts the commit:\n\n$ cg init -m \"Initial commit\"\n$ echo \"some text\" >file\n$ cg add file\n$ EDITOR=/bin/false cg commit -p\nLog message unchanged or not specified\nAbort or commit? [ac] a\nrm: cannot remove `/tmp/gitci.zdAHil/patch2.diff': No such file or \\\ndirectory\nCommit message not modified, commit aborted\n---\n cg-commit |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/cg-commit b/cg-commit\nindex 4ec2b33..c636b1a 100755\n--- a/cg-commit\n+++ b/cg-commit\n@@ -442,7 +442,7 @@ cp \"$LOGMSG\" \"$LOGMSG2\"\n if tty -s; then\n \tif [ \"$editor\" ] && ! editor $commitalways commit c; then\n \t\trm \"$LOGMSG\" \"$LOGMSG2\"\n-\t\t[ \"$review\" ] && rm \"$PATCH\" \"$PATCH2\"\n+\t\t[ \"$review\" ] && rm \"$PATCH\"\n \t\techo \"Commit message not modified, commit aborted\" >&2\n \t\tif [ \"$merging\" ]; then\n \t\t\tcat >&2 <<__END__\n-- \n1.3.3+git20060531-dest1\n"}]}