Skip to content

Commit

Permalink
Prevent file exists error when handling moved image twice
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed Nov 29, 2023
1 parent 7801bb0 commit 1409e99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ duplicateRef: oldRefPath to: newRefPath deleteOld: aBoolean
oldReflogFile exists ifTrue: [| newReflogFile |
newReflogFile := repository reflogFileForReference: newRefPath.
newReflogFile parent ensureCreateDirectory.
newReflogFile ensureDeleted.
oldReflogFile
perform: (aBoolean ifTrue: [#moveTo:] ifFalse: [#copyTo:])
with: newReflogFile].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"configUnsetAt:" : "mad 9/21/2023 18:23",
"copyRef:to:" : "mad 11/28/2023 15:59",
"deleteRef:" : "mad 9/15/2023 11:29",
"duplicateRef:to:deleteOld:" : "mad 11/28/2023 18:21",
"duplicateRef:to:deleteOld:" : "mad 11/29/2023 16:54",
"ensureConfigOr:" : "jr 7/22/2020 22:09",
"errorObjectNotFound:" : "jr 2/12/2020 22:27",
"expandRef:" : "jr 4/30/2020 01:51",
Expand Down

0 comments on commit 1409e99

Please sign in to comment.