diff --git a/git.py b/git.py index 8c6f0fb94..cf8ee8193 100644 --- a/git.py +++ b/git.py @@ -95,8 +95,7 @@ def gitAddFromHandle(patchStr: str, handle: str) -> str: if fromStr in patchStr: return patchStr - prevContentStr = patchStr - patchLines = prevContentStr.split('\n') + patchLines = patchStr.split('\n') patchStr = '' for line in patchLines: patchStr += line + '\n'