Skip to content

Commit

Permalink
fix(hooks): typo in hook script template
Browse files Browse the repository at this point in the history
  • Loading branch information
umbopepato committed Oct 30, 2020
1 parent 02abd70 commit 0a14727
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/git_hooks.ts
@@ -1,14 +1,10 @@
import {
writeFileStrSync,
existsSync,
path,
} from "../deps.ts";
import {
ScriptsConfiguration,
isScriptObject,
} from "./scripts_config.ts";
import { blue, existsSync, path } from "../deps.ts";
import { isScriptObject, spawn } from "./util.ts";
import { version } from "./version.ts";
import { VR_HOOKS, VR_MARK } from "./consts.ts";
import { ConfigData } from "./load_config.ts";

const hooks = [
export const hooks = [
"applypatch-msg",
"pre-applypatch",
"post-applypatch",
Expand All @@ -29,8 +25,9 @@ const hooks = [
];

function hookScript(hook: string): string {
return `!/bin/sh
vr --git-hook=${hook} "$@"
return `#!/bin/sh
# ${VR_MARK} ${version}
vr run-hook ${hook} "$@"
`;
}

Expand Down

0 comments on commit 0a14727

Please sign in to comment.