We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pathRepository
null
1 parent f2fbb69 commit f5efbc4Copy full SHA for f5efbc4
src/commandsAndMenu.tsx
@@ -1276,7 +1276,7 @@ export function addCommands(
1276
),
1277
execute: async args => {
1278
const { files } = args as any as CommandArguments.IGitFileDiff;
1279
- if (!gitModel.pathRepository) {
+ if (gitModel.pathRepository === null) {
1280
return;
1281
}
1282
src/model.ts
@@ -360,7 +360,7 @@ export class GitExtension implements IGitExtension {
360
* Note: This makes sure it always returns non null value
361
*/
362
protected get _currentMarker(): BranchMarker {
363
- if (!this.pathRepository) {
+ if (this.pathRepository === null) {
364
return new BranchMarker(() => {});
365
366
0 commit comments