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

Commit

Permalink
Hotfix in restore discard history of files with same name
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-N7 committed May 8, 2021
1 parent 853ea19 commit 7890946
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(tempFolderPath, path.dirname(filePath), `~${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 7890946

Please sign in to comment.