Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
6f118972
Commit
6f118972
authored
4 years ago
by
Nick Draper
Browse files
Options
Downloads
Patches
Plain Diff
Shorten commit length requirement to 10 characters
parent
5a25bd92
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.githooks/commit-msg
+2
-2
2 additions, 2 deletions
.githooks/commit-msg
with
2 additions
and
2 deletions
.githooks/commit-msg
+
2
−
2
View file @
6f118972
...
@@ -66,8 +66,8 @@ msg_first() {
...
@@ -66,8 +66,8 @@ msg_first() {
if
test
$len
-eq
0
;
then
if
test
$len
-eq
0
;
then
# not yet first line
# not yet first line
return
return
elif
test
$len
-lt
2
0
;
then
elif
test
$len
-lt
1
0
;
then
die
'Please make the first line at least
2
0 characters (yours is '
$len
'):
die
'Please make the first line at least
1
0 characters (yours is '
$len
'):
-------------------|
-------------------|
'
"
$line
"
'
'
"
$line
"
'
-------------------|'
-------------------|'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment