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

Commit 176fdc7

Browse files
committed
Use pre-existing dir variable in creating resultPath
1 parent 7890946 commit 176fdc7

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.dirname(filePath), `~${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)