Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
repo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YongjieWang
repo
Commits
a2cd2e39
Commit
a2cd2e39
authored
Mar 16, 2016
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: commit hook problem described in #30, thanks to here-abarany
parent
4950b60e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
project.py
project.py
+3
-3
No files found.
project.py
View file @
a2cd2e39
...
...
@@ -2220,7 +2220,7 @@ class Project(object):
self
.
_InitHooks
()
def
_InitHooks
(
self
):
hooks
=
os
.
path
.
realpath
(
self
.
_
git
dir_path
(
'hooks'
))
hooks
=
os
.
path
.
realpath
(
self
.
_
obj
dir_path
(
'hooks'
))
if
not
os
.
path
.
exists
(
hooks
):
os
.
makedirs
(
hooks
)
for
stock_hook
in
_ProjectHooks
():
...
...
@@ -2406,8 +2406,8 @@ class Project(object):
portable
.
rmtree
(
dotgit
)
raise
def
_
git
dir_path
(
self
,
path
):
return
os
.
path
.
realpath
(
os
.
path
.
join
(
self
.
git
dir
,
path
))
def
_
obj
dir_path
(
self
,
path
):
return
os
.
path
.
realpath
(
os
.
path
.
join
(
self
.
obj
dir
,
path
))
def
_revlist
(
self
,
*
args
,
**
kw
):
a
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment