mirror of https://gitlab.com/bashrc2/epicyon
Avoid double inserts
parent
4fc5afde9c
commit
7c6b2fd05f
3
git.py
3
git.py
|
@ -83,7 +83,8 @@ def gitAddFromHandle(contentStr: str, handle: str) -> str:
|
||||||
for line in patchLines:
|
for line in patchLines:
|
||||||
contentStr += line + '\n'
|
contentStr += line + '\n'
|
||||||
if line.startswith('From:'):
|
if line.startswith('From:'):
|
||||||
contentStr += fromStr + handle + '\n'
|
if fromStr not in contentStr:
|
||||||
|
contentStr += fromStr + handle + '\n'
|
||||||
return contentStr
|
return contentStr
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue