Skip to content

Commit aff11bc

Browse files
ethantkoeniglunny
authored andcommittedJul 27, 2017
Fix hooks for integration repo (#2216)
1 parent a27863b commit aff11bc

File tree

7 files changed

+30
-3
lines changed

7 files changed

+30
-3
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
ORI_DIR=`pwd`
3+
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
4+
cd "$ORI_DIR"
5+
for i in `ls "$SHELL_FOLDER/post-receive.d"`; do
6+
sh "$SHELL_FOLDER/post-receive.d/$i"
7+
done
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' post-receive

‎integrations/gitea-integration-meta/gitea-repositories/user3/repo3.git/hooks/pre-rebase.sample

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ else
8888
exit 1
8989
fi
9090

91-
exit 0
92-
93-
################################################################
91+
<<\DOC_END
9492
9593
This sample hook safeguards topic branches that have been
9694
published from being rewound.
@@ -167,3 +165,5 @@ To compute (2):
167165
git rev-list master..topic
168166
169167
if this is empty, it is fully merged to "master".
168+
169+
DOC_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
ORI_DIR=`pwd`
3+
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
4+
cd "$ORI_DIR"
5+
for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do
6+
sh "$SHELL_FOLDER/pre-receive.d/$i"
7+
done
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' pre-receive
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
ORI_DIR=`pwd`
3+
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
4+
cd "$ORI_DIR"
5+
for i in `ls "$SHELL_FOLDER/update.d"`; do
6+
sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3
7+
done
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' update $1 $2 $3

0 commit comments

Comments
 (0)
Please sign in to comment.