Skip to content

Commit

Permalink
fix: push with file named like branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Sep 29, 2022
1 parent 529ed0a commit 2664bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simpleGit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export class SimpleGit extends GitManager {
const status = await this.git.status();
const trackingBranch = status.tracking!;
const currentBranch = status.current!;
const remoteChangedFiles = (await this.git.diffSummary([currentBranch, trackingBranch], (err) => this.onError(err))).changed;
const remoteChangedFiles = (await this.git.diffSummary([currentBranch, trackingBranch, "--"], (err) => this.onError(err))).changed;

this.plugin.setState(PluginState.push);
if (this.plugin.settings.updateSubmodules) {
Expand All @@ -269,7 +269,7 @@ export class SimpleGit extends GitManager {
const status = await this.git.status((err) => this.onError(err));
const trackingBranch = status.tracking!;
const currentBranch = status.current!;
const remoteChangedFiles = (await this.git.diffSummary([currentBranch, trackingBranch])).changed;
const remoteChangedFiles = (await this.git.diffSummary([currentBranch, trackingBranch, "--"])).changed;

return remoteChangedFiles !== 0;
}
Expand Down

0 comments on commit 2664bfe

Please sign in to comment.