Skip to content

Commit c6d4567

Browse files
committed
misc-helper: drop the --config option
Now that we've moved to GitHub Actions, there isn't much of a point left to keep `misc-helper` around, really, and certainly not the `--config` option. Besides, it is the last user of `setConfig()`, so let's drop it before dropping that function. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5fc0653 commit c6d4567

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

script/misc-helper.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { toPrettyJSON } from "../lib/json-util.js";
1010
import { IGitMailingListMirrorState, stateKey } from "../lib/mail-archive-helper.js";
1111
import { IPatchSeriesMetadata } from "../lib/patch-series-metadata.js";
1212
import { IConfig } from "../lib/project-config.js";
13+
import defaultConfig from "../lib/gitgitgadget-config.js";
1314

1415
let commander = new Command();
1516
const publishRemoteKey = "publishRemote";
@@ -30,13 +31,11 @@ commander
3031
"e.g. for `gitgitgadget.workDir`",
3132
".",
3233
)
33-
.option("-c, --config <string>", "Use this configuration when using gitgitgadget with a project other than git", "")
3434
.option("-s, --skip-update", "Do not update the local refs (useful for debugging)")
3535
.argument("[args...]", "command arguments (call `list -h` for more information)")
3636
.parse(process.argv);
3737

3838
interface ICommanderOptions {
39-
config: string | undefined;
4039
gitgitgadgetWorkDir: string | undefined;
4140
gitWorkDir: string | undefined;
4241
skipUpdate: boolean | undefined;
@@ -45,7 +44,7 @@ interface ICommanderOptions {
4544
const commandOptions = commander.opts<ICommanderOptions>();
4645

4746
(async (): Promise<void> => {
48-
const config: IConfig = await CIHelper.getConfig(commandOptions.config);
47+
const config: IConfig = defaultConfig;
4948

5049
const getGitGitWorkDir = async (): Promise<string> => {
5150
if (!commandOptions.gitWorkDir) {

0 commit comments

Comments
 (0)