chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Fix crash for empty description
[stgit]
/
stgit
/
git.py
diff --git
a/stgit/git.py
b/stgit/git.py
index c8339e0f0cc418ae63d6db2d94223dee52121957..40bcd78072692be615f6532ecacb0d03ea85a313 100644
(file)
--- 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