diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2c5781409..014feb50b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -92,7 +92,10 @@ commit_msg_filepath = sys.argv[1] with open(commit_msg_filepath, "r+") as f: content = f.read() f.seek(0, 0) - f.write("%s\n\nJerryScript-DCO-1.0-Signed-off-by: " % content) + if "Signed-off-by" not in content: + f.write("\n\nJerryScript-DCO-1.0-Signed-off-by: \n%s" % content) + else: + f.write(content) ``` Please refer [Git Hooks](http://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) for more information.