mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
git-changelog: use cp instead of mv
mv command cannot overwrite in PortableGit(msysgit).
This commit is contained in:
parent
434b7681ce
commit
5e14c08fc5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue