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 52cfcf5 commit 337cdc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ function main() {
// Try fallback method
console.warn(`Could not determine default remote repository, trying fallback method ${d.stdout}`);
} else {
pushStr += ` -u origin ${d.stdout.trim()}`;
let remote = d.stdout.trim();
remote = remote.replace("origin/", "");
pushStr += ` -u origin ${remote}`;
}
}
if (quickgo.environ.tag) {
Expand Down

0 comments on commit 337cdc8

Please sign in to comment.