Skip to content

Commit

Permalink
helpz: append /git to path if GLOBAL_CONFIG has set git attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Shengqi Chen <[email protected]>
  • Loading branch information
Harry-Chen committed Aug 28, 2024
1 parent c04b34b commit 8b143c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _src/entrypoints/helpz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function generateFormConfig(form) {
function renderCode(tmpl) {
// generate mustache config
let conf: Record<string, string> = {
path: (mirrorId.endsWith(".git") ? "/git/" : "/") + mirrorId,
path: ((mirrorId.endsWith(".git") || GLOBAL_CONFIG.git) ? "/git/" : "/") + mirrorId,
};
Array.from(document.querySelectorAll("form.z-global")).forEach((elm) => {
Object.assign(conf, generateFormConfig(elm));
Expand Down

0 comments on commit 8b143c0

Please sign in to comment.