##// END OF EJS Templates
commit: handle missing newline on last commit comment
Matt Mackall -
r12900:4ff61287 stable
parent child Browse files
Show More
@@ -1356,7 +1356,7 b' def commitforceeditor(repo, ctx, subs):'
1356 olddir = os.getcwd()
1356 olddir = os.getcwd()
1357 os.chdir(repo.root)
1357 os.chdir(repo.root)
1358 text = repo.ui.edit("\n".join(edittext), ctx.user())
1358 text = repo.ui.edit("\n".join(edittext), ctx.user())
1359 text = re.sub("(?m)^HG:.*\n", "", text)
1359 text = re.sub("(?m)^HG:.*(\n|$)", "", text)
1360 os.chdir(olddir)
1360 os.chdir(olddir)
1361
1361
1362 if not text.strip():
1362 if not text.strip():
General Comments 0
You need to be logged in to leave comments. Login now