Skip to content

Commit 179e953

Browse files
authored
fix: remove origin argument from git checkout command (#591)
1 parent 1117842 commit 179e953

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

install/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20126,7 +20126,7 @@ async function installBashAsdf(asdfDir, branch) {
2012620126
const options = { cwd: asdfDir };
2012720127
await exec.exec("git", ["remote", "set-branches", "origin", branch], options);
2012820128
await exec.exec("git", ["fetch", "--depth", "1", "origin", branch], options);
20129-
await exec.exec("git", ["checkout", "-B", branch, "origin"], options);
20129+
await exec.exec("git", ["checkout", "-B", branch], options);
2013020130
} else {
2013120131
core.info(`Cloning asdf into ASDF_DIR "${asdfDir}" on branch "${branch}"`);
2013220132
await exec.exec("git", [

plugin-test/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20122,7 +20122,7 @@ async function installBashAsdf(asdfDir, branch) {
2012220122
const options = { cwd: asdfDir };
2012320123
await exec.exec("git", ["remote", "set-branches", "origin", branch], options);
2012420124
await exec.exec("git", ["fetch", "--depth", "1", "origin", branch], options);
20125-
await exec.exec("git", ["checkout", "-B", branch, "origin"], options);
20125+
await exec.exec("git", ["checkout", "-B", branch], options);
2012620126
} else {
2012720127
core.info(`Cloning asdf into ASDF_DIR "${asdfDir}" on branch "${branch}"`);
2012820128
await exec.exec("git", [

plugins-add/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20122,7 +20122,7 @@ async function installBashAsdf(asdfDir, branch) {
2012220122
const options = { cwd: asdfDir };
2012320123
await exec.exec("git", ["remote", "set-branches", "origin", branch], options);
2012420124
await exec.exec("git", ["fetch", "--depth", "1", "origin", branch], options);
20125-
await exec.exec("git", ["checkout", "-B", branch, "origin"], options);
20125+
await exec.exec("git", ["checkout", "-B", branch], options);
2012620126
} else {
2012720127
core.info(`Cloning asdf into ASDF_DIR "${asdfDir}" on branch "${branch}"`);
2012820128
await exec.exec("git", [

setup/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20117,7 +20117,7 @@ async function installBashAsdf(asdfDir, branch) {
2011720117
const options = { cwd: asdfDir };
2011820118
await exec.exec("git", ["remote", "set-branches", "origin", branch], options);
2011920119
await exec.exec("git", ["fetch", "--depth", "1", "origin", branch], options);
20120-
await exec.exec("git", ["checkout", "-B", branch, "origin"], options);
20120+
await exec.exec("git", ["checkout", "-B", branch], options);
2012120121
} else {
2012220122
core.info(`Cloning asdf into ASDF_DIR "${asdfDir}" on branch "${branch}"`);
2012320123
await exec.exec("git", [

src/setup/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function installBashAsdf(asdfDir: string, branch: string): Promise<void> {
2929
const options = {cwd: asdfDir};
3030
await exec.exec('git', ['remote', 'set-branches', 'origin', branch], options);
3131
await exec.exec('git', ['fetch', '--depth', '1', 'origin', branch], options);
32-
await exec.exec('git', ['checkout', '-B', branch, 'origin'], options);
32+
await exec.exec('git', ['checkout', '-B', branch], options);
3333
} else {
3434
core.info(`Cloning asdf into ASDF_DIR "${asdfDir}" on branch "${branch}"`);
3535
await exec.exec('git', [

0 commit comments

Comments
 (0)