Renaming .gitk-new to .gitk fails if there is already a .gitk.

Remove the existing one before renaming.
This commit is contained in:
Johannes Sixt
2007-01-31 18:04:12 +01:00
parent 3b3ed42c03
commit 3a8b35c3e3

1
gitk
View File

@@ -822,6 +822,7 @@ proc savestuff {w} {
}
puts $f "}"
close $f
catch {file delete "~/.gitk"}
file rename -force "~/.gitk-new" "~/.gitk"
}
set stuffsaved 1