summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/project.py b/project.py
index b01a52ba..1fb5d586 100644
--- a/project.py
+++ b/project.py
@@ -82,7 +82,7 @@ def _ProjectHooks():
82 """ 82 """
83 global _project_hook_list 83 global _project_hook_list
84 if _project_hook_list is None: 84 if _project_hook_list is None:
85 d = os.path.abspath(os.path.dirname(__file__)) 85 d = os.path.realpath(os.path.abspath(os.path.dirname(__file__)))
86 d = os.path.join(d , 'hooks') 86 d = os.path.join(d , 'hooks')
87 _project_hook_list = [os.path.join(d, x) for x in os.listdir(d)] 87 _project_hook_list = [os.path.join(d, x) for x in os.listdir(d)]
88 return _project_hook_list 88 return _project_hook_list
@@ -1955,7 +1955,7 @@ class Project(object):
1955 self._InitHooks() 1955 self._InitHooks()
1956 1956
1957 def _InitHooks(self): 1957 def _InitHooks(self):
1958 hooks = self._gitdir_path('hooks') 1958 hooks = os.path.realpath(self._gitdir_path('hooks'))
1959 if not os.path.exists(hooks): 1959 if not os.path.exists(hooks):
1960 os.makedirs(hooks) 1960 os.makedirs(hooks)
1961 for stock_hook in _ProjectHooks(): 1961 for stock_hook in _ProjectHooks():