From 7ff05f297783b770022959c2c01c5055ee8080ed Mon Sep 17 00:00:00 2001 From: Brian Goad Date: Fri, 21 Oct 2016 14:05:44 -0400 Subject: [PATCH] Need to remove the temp file regardless --- bin/git-changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/git-changelog b/bin/git-changelog index 80cecf9..74a4867 100755 --- a/bin/git-changelog +++ b/bin/git-changelog @@ -478,6 +478,7 @@ main() { rm -f "$tmpfile" else cp -f "$tmpfile" "$changelog" + rm -f "$tmpfile" # Use `eval` to handle GIT_EDITOR which contains space and options, # like ""C:\Program Files (x86)\Notepad++\notepad++.exe" -multiInst ". # Thanks @JanSchulz to inspire me this solution