Skip to content

Commit

Permalink
Update git command, remove fallback method, split on 'origin/'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel2392 committed May 9, 2024
1 parent 337cdc8 commit 2862dbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function main() {
// Try fallback method
console.warn(`Could not determine default remote repository, trying fallback method ${d.stdout}`);
} else {
// Trim the origin
let remote = d.stdout.trim();
remote = remote.replace("origin/", "");
pushStr += ` -u origin ${remote}`;
Expand Down

0 comments on commit 2862dbf

Please sign in to comment.