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

Commit 9e83fb4

Browse files
authored
Merge pull request #2676 from Robert-N7/master
Hotfix in restore discard history of files with same name
2 parents 853ea19 + 176fdc7 commit 9e83fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/models/discard-history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default class DiscardHistory {
127127
await this.expandBlobToFile(path.join(tempFolderPath, `${filePath}-before-discard`), beforeSha);
128128
const commonBasePath = !afterSha ? null :
129129
await this.expandBlobToFile(path.join(tempFolderPath, `${filePath}-after-discard`), afterSha);
130-
const resultPath = path.join(tempFolderPath, `~${path.basename(filePath)}-merge-result`);
130+
const resultPath = path.join(dir, `~${path.basename(filePath)}-merge-result`);
131131
return {filePath, commonBasePath, theirsPath, resultPath, theirsSha: beforeSha, commonBaseSha: afterSha};
132132
});
133133
return await Promise.all(pathPromises);

0 commit comments

Comments
 (0)