Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
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
gitlab-ce
Commits
197e793c
Commit
197e793c
authored
Mar 26, 2014
by
Sytse Sijbrandij
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'documentation/git_hooks' into 'master'
More documentation for git hooks
parents
713815df
7017474b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
app/views/projects/git_hooks/index.html.haml
app/views/projects/git_hooks/index.html.haml
+11
-2
No files found.
app/views/projects/git_hooks/index.html.haml
View file @
197e793c
...
...
@@ -15,7 +15,11 @@
.col-sm-10
.checkbox
=
f
.
check_box
:deny_delete_tag
%span
.descr
Do not allow users to remove git tags.
%span
.descr
Do not allow users to remove git tags with
=
succeed
'.'
do
%code
git push
Tags can still be deleted through the web UI.
-#.form-group
= f.label :force_push_regex, "Force push", class: 'control-label'
...
...
@@ -33,7 +37,12 @@
=
f
.
label
:commit_message_regex
,
"Commit message"
,
class:
'control-label'
.col-sm-10
=
f
.
text_field
:commit_message_regex
,
class:
"form-control"
,
placeholder:
'Example: Fixes \d+\..*'
%p
.hint
Commit message must match this regular expression to be pushed. If this field is empty it allows any commit message. For example you can require that an issue number is always mentioned in the commit message.
%p
.hint
All commit messages must match this
=
link_to
'Ruby regular expression'
,
'http://www.ruby-doc.org/core-2.1.1/Regexp.html'
to be pushed.
If this field is empty it allows any commit message.
For example you can require that an issue number is always mentioned in the commit message.
.form-actions
=
f
.
submit
"Save Git hooks"
,
class:
"btn btn-create"
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