Add git hooks to call in-project git hooks as well
This commit is contained in:
parent
b535c134a5
commit
36a376a323
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
|
@ -51,3 +51,10 @@ if [ -z "$error" ]
|
||||||
then exit 0
|
then exit 0
|
||||||
else exit 1
|
else exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
hook=$(basename $0)
|
||||||
|
if [ -f $GIT_DIR/hooks/$hook ]
|
||||||
|
then
|
||||||
|
echo Running project-level hook: $GIT_DIR/hooks/$hook
|
||||||
|
$GIT_DIR/hooks/$hook
|
||||||
|
fi
|
Loading…
Reference in New Issue