BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d250e869
Commit
d250e869
authored
Jul 05, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for custom Git hook error message in GitLab's UI
parent
ea6e4bf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
custom_hooks.md
doc/hooks/custom_hooks.md
+13
-0
No files found.
doc/hooks/custom_hooks.md
View file @
d250e869
...
...
@@ -39,3 +39,16 @@ type. For example, if the script is in Ruby the shebang will probably be
That's it! Assuming the hook code is properly implemented the hook will fire
as appropriate.
## Custom error messages
>**Note:**
This feature was
[
introduced
][
5073
]
in GitLab 8.10.
If the commit is declined or an error occurs during the Git hook check,
the STDERR and/or SDOUT message of the hook will be present in GitLab's UI.
![
Custom message from custom Git hook
](
img/custom_hooks_error_msg.png
)
[
hooks
]:
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks#Server-Side-Hooks
[
5073
]:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5073
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