~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
c8339e0
..
40bcd78
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