repo.or.cz
/
samba4-gss.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcli/smb: only copy the parent lease key if SMB2_LEASE_FLAG_PARENT_LEASE_KEY_SET...
[samba4-gss.git]
/
script
/
git-hooks
/
pre-commit-hook
blob
1bcb000e91ec767b94257ea6637fd7878472ddff
1
#!/bin/sh
2
3
set -eu
4
5
gitdir
=
$
(
git rev-parse
--show-toplevel
)
6
if
[
$?
-ne
0
];
then
7
echo
"git rev-parse --show-toplevel failed"
8
exit
1
9
fi
10
11
if
[ !
-f
${gitdir}
/
script
/
git-hooks
/
pre-commit-script
];
then
12
exit
0
13
fi
14
15
${gitdir}
/
script
/
git-hooks
/
pre-commit-script ||
exit
$?
16
17
exit
0