diff options
Diffstat (limited to 'misc/git_hook/git-hook.go')
| -rw-r--r-- | misc/git_hook/git-hook.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/misc/git_hook/git-hook.go b/misc/git_hook/git-hook.go index 4af11c065..2cf3ff421 100644 --- a/misc/git_hook/git-hook.go +++ b/misc/git_hook/git-hook.go @@ -14,7 +14,6 @@ package main import ( - _ "embed" "fmt" "log" "os" @@ -23,9 +22,6 @@ import ( "tailscale.com/misc/git_hook/githook" ) -//go:embed HOOK_VERSION -var compiledHookVersion string - var pushRemotes = []string{ "git@github.com:tailscale/tailscale", "git@github.com:tailscale/tailscale.git", @@ -47,7 +43,7 @@ func main() { var err error switch cmd { case "version": - fmt.Print(strings.TrimSpace(compiledHookVersion)) + fmt.Print(strings.TrimSpace(githook.HookVersion) + ":0") case "install": err = githook.WriteHooks(hooks) case "pre-commit": |
