Skip to content

Commit 2c07b12

Browse files
committed
CIHelper: make even the workDir an optional parameter
When no `workDir` is specified, default to using the `git.git/` subdirectory in the current directory. This will be initialized as a bare repository in the upcoming GitHub Actions. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 4402c0d commit 2c07b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ci-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class CIHelper {
4545
return configFile ? await getExternalConfig(configFile) : getConfig();
4646
}
4747

48-
public constructor(workDir: string, config?: IConfig, skipUpdate?: boolean, gggConfigDir = ".") {
48+
public constructor(workDir: string = "git.git", config?: IConfig, skipUpdate?: boolean, gggConfigDir = ".") {
4949
this.config = config !== undefined ? setConfig(config) : getConfig();
5050
this.gggConfigDir = gggConfigDir;
5151
this.workDir = workDir;

0 commit comments

Comments
 (0)