Skip to content

Commit d313d16

Browse files
authored
Merge pull request #1251 from danger/glensc-patch-1
Print default base branch for danger local
2 parents 1822fe1 + c12bab1 commit d313d16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/commands/danger-local.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ program
1818
.usage("[options]")
1919
.description("Runs danger without PR metadata, useful for git hooks.")
2020
.option("-s, --staging", "Just use staged changes.")
21-
.option("-b, --base [branch_name]", "Use a different base branch")
21+
.option("-b, --base [branch_name]", "Use a different base branch", "master")
2222
.option("-j, --outputJSON", "Outputs the resulting JSON to STDOUT")
2323
.allowUnknownOption(true)
2424
setSharedArgs(program).parse(process.argv)
2525

2626
const app = (program as any) as App
27-
const base = app.base || "master"
27+
const base = app.base
2828

2929
const localPlatform = new LocalGit({ base, staging: app.staging })
3030
localPlatform.validateThereAreChanges().then(changes => {

0 commit comments

Comments
 (0)