Skip to content

Commit b6ac81d

Browse files
authored
fix: specified initial branch name to suppress Git hint (by @stevapple) (#69)
1 parent b1d7dba commit b6ac81d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/swiftorg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class Swiftorg {
5151
gitArgs.push('--recursive', '--remote')
5252
}
5353
core.debug(`Initializing submodules in "${MODULE_DIR}"`)
54-
await exec('git', ['init'], {cwd: MODULE_DIR})
54+
await exec('git', ['init', '-b', 'main'], {cwd: MODULE_DIR})
5555
core.debug(`Updating submodules in "${MODULE_DIR}" with args "${gitArgs}"`)
5656
await exec('git', gitArgs, {cwd: MODULE_DIR})
5757
const swiftorg = path.join(MODULE_DIR, 'swiftorg')

0 commit comments

Comments
 (0)