FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lantern/pre-commit at devel · CaffeCat/lantern · GitHub
CaffeCat
/
lantern
Public
forked from
getlantern/lantern
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
lantern
/
pre-commit
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
20 lines (15 loc) · 630 Bytes
Breadcrumbs
lantern
/
pre-commit
Copy path
File metadata and controls
executable file
·
20 lines (15 loc) · 630 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
13
14
15
16
17
18
19
20
#!
/bin/sh
#
Git pre-push hook for the Lantern project
#
Maintainer: Ulysses Aalto <uaalto@getlantern.org>
#
#
Installation: Copy into .git/hooks/pre-push
#
Exit immediately if a command exits with a non-zero status.
set
-e
#
Find only modified files/directories
export
MODIFIED_DIRS=
$(
git status --porcelain
|
\
awk
'
match($1, "M") && match($2, "src/github.com/getlantern/*"){print $2}
'
|
\
sed
'
s+src/github.com/getlantern/++g
'
|
\
sed
'
s+/.*++
'
|
\
uniq
)
DIR=
"
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
&&
pwd
)
"
$DIR
/prehook.sh
Back
|
FazBrowse Home
|
New Git URL