Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2676 from Robert-N7/master
Browse files Browse the repository at this point in the history
Hotfix in restore discard history of files with same name
  • Loading branch information
smashwilson committed May 9, 2021
2 parents 853ea19 + 176fdc7 commit 9e83fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/discard-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default class DiscardHistory {
await this.expandBlobToFile(path.join(tempFolderPath, `${filePath}-before-discard`), beforeSha);
const commonBasePath = !afterSha ? null :
await this.expandBlobToFile(path.join(tempFolderPath, `${filePath}-after-discard`), afterSha);
const resultPath = path.join(tempFolderPath, `~${path.basename(filePath)}-merge-result`);
const resultPath = path.join(dir, `~${path.basename(filePath)}-merge-result`);
return {filePath, commonBasePath, theirsPath, resultPath, theirsSha: beforeSha, commonBaseSha: afterSha};
});
return await Promise.all(pathPromises);
Expand Down

0 comments on commit 9e83fb4

Please sign in to comment.