Skip to content

Commit a2cd2e3

Browse files
author
Matthias Putz
committed
Fix: commit hook problem described in esrlabs#30, thanks to here-abarany
1 parent 4950b60 commit a2cd2e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,7 @@ def _UpdateHooks(self):
22202220
self._InitHooks()
22212221

22222222
def _InitHooks(self):
2223-
hooks = os.path.realpath(self._gitdir_path('hooks'))
2223+
hooks = os.path.realpath(self._objdir_path('hooks'))
22242224
if not os.path.exists(hooks):
22252225
os.makedirs(hooks)
22262226
for stock_hook in _ProjectHooks():
@@ -2406,8 +2406,8 @@ def _InitWorkTree(self, force_sync=False):
24062406
portable.rmtree(dotgit)
24072407
raise
24082408

2409-
def _gitdir_path(self, path):
2410-
return os.path.realpath(os.path.join(self.gitdir, path))
2409+
def _objdir_path(self, path):
2410+
return os.path.realpath(os.path.join(self.objdir, path))
24112411

24122412
def _revlist(self, *args, **kw):
24132413
a = []

0 commit comments

Comments
 (0)