X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/4d4c0e3a5cf0930619317b473259177bc5b79f41..011cbd1b417a29bbcb189f86833bac773ba4a6f7:/stgit/git.py diff --git a/stgit/git.py b/stgit/git.py index c8339e0..40bcd78 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -299,7 +299,7 @@ def commit(message, files = [], parents = [], allowempty = False, # get the commit message f = file('.commitmsg', 'w+') - if message[-1] == '\n': + if message[-1:] == '\n': f.write(message) else: print >> f, message