Skip to content

Commit 30f7ff2

Browse files
committed
Use getRelativeFilePath() when looking for matching file by path
1 parent 16053ab commit 30f7ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class GitExtension implements IGitExtension {
248248

249249
getFile(path: string): Git.IStatusFile {
250250
const matchingFiles = this._status.files.filter(status => {
251-
return status.to === path;
251+
return this.getRelativeFilePath(status.to) === path;
252252
});
253253
if (matchingFiles.length === 0) {
254254
return;

0 commit comments

Comments
 (0)