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
39db0580
Commit
39db0580
authored
Apr 08, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document usage of system() (issue #221)
parent
23053995
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
docs/admin.rst
docs/admin.rst
+3
-0
docs/config.rst
docs/config.rst
+4
-0
No files found.
docs/admin.rst
View file @
39db0580
...
@@ -245,6 +245,9 @@ Before using any scripts, you need to list them in
...
@@ -245,6 +245,9 @@ Before using any scripts, you need to list them in
:setting:`PRE_COMMIT_SCRIPTS` configuration variable. Then you can enable them
:setting:`PRE_COMMIT_SCRIPTS` configuration variable. Then you can enable them
at :ref:`subproject` configuration as :guilabel:`Pre commit script`.
at :ref:`subproject` configuration as :guilabel:`Pre commit script`.
The hook script is executed using system() call, so it is evaluated in a shell.
It is passed single parameter consisting of file name of current translation.
The script can also generate additional file to be included in the commit. This
The script can also generate additional file to be included in the commit. This
can be configured as :guilabel:`Extra commit file` at :ref:`subproject`
can be configured as :guilabel:`Extra commit file` at :ref:`subproject`
configuration. You can use following format strings in the filename:
configuration. You can use following format strings in the filename:
...
...
docs/config.rst
View file @
39db0580
...
@@ -228,6 +228,10 @@ For example you can allow script which does some cleanup:
...
@@ -228,6 +228,10 @@ For example you can allow script which does some cleanup:
'/usr/local/bin/cleanup-translation',
'/usr/local/bin/cleanup-translation',
)
)
.. note::
The hook is executed using system() call, so it is evaluated in a shell.
.. seealso:: :ref:`processing`
.. seealso:: :ref:`processing`
.. setting:: REGISTRATION_OPEN
.. setting:: REGISTRATION_OPEN
...
...
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