From b730e8a9ec5229f95230d4c7f1eca17c221306a0 Mon Sep 17 00:00:00 2001 From: Key Carson Date: Mon, 5 Mar 2018 13:58:10 -0600 Subject: [PATCH] make full hooks path if it doesn't exist --- lib/pre_commit.ex | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/pre_commit.ex b/lib/pre_commit.ex index 71b89f7..c41e5e1 100644 --- a/lib/pre_commit.ex +++ b/lib/pre_commit.ex @@ -46,8 +46,6 @@ defmodule PreCommit do copy = Mix.Project.deps_path() |> Path.join("pre_commit/priv/pre-commit") to = Mix.Project.deps_path() |> Path.join("../.git/hooks/pre-commit") - IO.inspect ["file exists: ", File.exists?(to)] - unless File.exists?(to), do: File.mkdir_p!(to) copy