Skip to content

Commit de40873

Browse files
committed
fix hooks
1 parent 41d054e commit de40873

File tree

11 files changed

+11
-13
lines changed

11 files changed

+11
-13
lines changed

.drone.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ pipeline:
132132
TAGS: bindata
133133
GOPATH: /srv/app
134134
commands:
135-
- apk add --no-cache git-lfs
136135
- make test-mysql
137136
when:
138137
event: [ tag ]
@@ -145,7 +144,6 @@ pipeline:
145144
TAGS: bindata
146145
GOPATH: /srv/app
147146
commands:
148-
- apk add --no-cache git-lfs
149147
- make test-pgsql
150148
when:
151149
event: [ push, tag, pull_request ]

integrations/git_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func TestGit(t *testing.T) {
9393
Remote: u.String(),
9494
Force: false,
9595
})
96-
//TODO assert.NoError(t, err)
96+
assert.NoError(t, err)
9797
})
9898
})
9999
t.Run("LFS", func(t *testing.T) {
@@ -138,7 +138,7 @@ func TestGit(t *testing.T) {
138138
Remote: u.String(),
139139
Force: false,
140140
})
141-
//TODO assert.NoError(t, err)
141+
assert.NoError(t, err)
142142
})
143143
t.Run("Locks", func(t *testing.T) {
144144
_, err = git.NewCommand("remote").AddArguments("set-url", "origin", u.String()).RunInDir(dstPath) //TODO add test ssh git-lfs-creds
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' post-receive
2+
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' pre-receive
2+
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' update $1 $2 $3
2+
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' post-receive
2+
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' pre-receive
2+
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' update $1 $2 $3
2+
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' post-receive
2+
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' pre-receive
2+
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
"$GITEA_ROOT/gitea" hook --config='integrations/app.ini' update $1 $2 $3
2+
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3

0 commit comments

Comments
 (0)