FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
WISE-API/pre-commit at develop · WISE-Community/WISE-API · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
WISE-Community
/
WISE-API
Public
Notifications
You must be signed in to change notification settings
Fork
8
Star
5
Code
Issues
6
Pull requests
7
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
WISE-API
/
pre-commit
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
12 lines (12 loc) · 597 Bytes
Breadcrumbs
WISE-API
/
pre-commit
Copy path
File metadata and controls
executable file
·
12 lines (12 loc) · 597 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
#!
/bin/bash
echo
"
*****************************
"
echo
"
* BEGIN WISE PRECOMMIT HOOK *
"
echo
"
*****************************
"
if
[
"
`
git diff --cached --name-status
|
grep src/main/resources/application-dockerdev.properties
|
wc -l
`
"
-gt
0 ]
;
then
echo
"
Aborting. You are trying to add application-dockerdev.properties. This file may contain confidential data like passwords.
"
echo
"
If you really want to commit this file, you can commit with -n to bypass this pre-commit hook.
"
exit
1
fi
echo
"
***************************
"
echo
"
* END WISE PRECOMMIT HOOK *
"
echo
"
***************************
"
Back
|
FazBrowse Home
|
New Git URL