From a951f36c26cd850cb086ecdc4479c1e254f5e940 Mon Sep 17 00:00:00 2001 From: Melvin Carvalho Date: Mon, 13 Apr 2026 11:22:08 +0200 Subject: [PATCH] Add --git flag to enable JSS git HTTP backend by default Fixes #2. The --git flag was not being passed through to JSS, so git clone/push over HTTP never worked via servejss. --- bin/jsserve.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/jsserve.js b/bin/jsserve.js index 9d4a85d..71b5519 100644 --- a/bin/jsserve.js +++ b/bin/jsserve.js @@ -132,6 +132,8 @@ program .option('--solid', 'Enable full Solid protocol features') .option('--live', 'Enable live reload (default: true)') .option('--no-live', 'Disable live reload') + .option('--git', 'Enable git HTTP backend (default: true)') + .option('--no-git', 'Disable git HTTP backend') .option('-q, --quiet', 'Suppress all output') .addHelpText('after', ` Examples: @@ -247,6 +249,11 @@ async function run(directory, options) { jssArgs.push('--live-reload'); } + // Git HTTP backend (default: enabled) + if (options.git !== false) { + jssArgs.push('--git'); + } + // Debug mode if (options.debug) { console.log(chalk.gray(' JSS args:'), jssArgs.join(' '));