From 7c6b2fd05fcee07a5019b2998783c6f113186a4b Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Sun, 3 May 2020 10:14:34 +0000
Subject: [PATCH] Avoid double inserts

---
 git.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/git.py b/git.py
index c454b30a0..368e5baf8 100644
--- a/git.py
+++ b/git.py
@@ -83,7 +83,8 @@ def gitAddFromHandle(contentStr: str, handle: str) -> str:
     for line in patchLines:
         contentStr += line + '\n'
         if line.startswith('From:'):
-            contentStr += fromStr + handle + '\n'
+            if fromStr not in contentStr:
+                contentStr += fromStr + handle + '\n'
     return contentStr