Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
9031a43e
Commit
9031a43e
authored
Aug 04, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hook scripts are executed with VCS root as current directory.
Issue #790 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
2b26289a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
docs/admin/continuous.rst
docs/admin/continuous.rst
+3
-0
docs/changes.rst
docs/changes.rst
+1
-0
weblate/trans/models/subproject.py
weblate/trans/models/subproject.py
+2
-1
No files found.
docs/admin/continuous.rst
View file @
9031a43e
...
...
@@ -224,6 +224,9 @@ Their naming quite clearly tells when given script is executed. The commit
related scripts always get one parameter with full path to the translation file
which has been changed.
The script is executed with the current directory set to root of VCS repository
for given component.
.. seealso::
:setting:`POST_UPDATE_SCRIPTS`,
...
...
docs/changes.rst
View file @
9031a43e
...
...
@@ -14,6 +14,7 @@ Released on ? 2015.
* Added support for Bitbucket webhooks.
* Tigher control on fuzzy strings on translation upload.
* Several URLs have changed, you might have to update your bookmarks.
* Hook scripts are executed with VCS root as current directory.
weblate 2.3
-----------
...
...
weblate/trans/models/subproject.py
View file @
9031a43e
...
...
@@ -1508,7 +1508,8 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
try
:
subprocess
.
check_call
(
command
,
env
=
environment
env
=
environment
,
cwd
=
self
.
get_path
(),
)
return
True
except
(
OSError
,
subprocess
.
CalledProcessError
)
as
err
:
...
...
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