mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
The sample git hook shouldn't duplicate signed-off (#3022)
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
parent
ee1da14577
commit
744a64c6fd
@ -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: <Your Name> <Your Email>" % content)
|
||||
if "Signed-off-by" not in content:
|
||||
f.write("\n\nJerryScript-DCO-1.0-Signed-off-by: <Your Name> <Your Email>\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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user