git-changelog: use cp instead of mv

mv command cannot overwrite in PortableGit(msysgit).
This commit is contained in:
NANRI 2013-01-23 05:42:00 +09:00 committed by Nicolai Skogheim
parent 434b7681ce
commit 5e14c08fc5

View file

@ -453,7 +453,7 @@ main() {
cat "$tmpfile"
rm -f "$tmpfile"
else
mv -f "$tmpfile" "$changelog"
cp -f "$tmpfile" "$changelog"
[[ -n "$GIT_EDITOR" ]] && $GIT_EDITOR "$changelog"
if [[ $? -ne 0 ]]; then
_exit