Skip to content

Commit 14fae72

Browse files
authored
feat(core): pass --no-verify flag to git commit (#71)
This avoids to being unexpectedly blocked by custom hooks.
1 parent 2296c34 commit 14fae72

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

packages/core/src/countBallotsFromGit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ export default async function countFromGit<T extends BufferSource = BufferSource
288288
GIT_BIN,
289289
[
290290
"commit",
291+
"-n",
291292
...getGPGSignGitFlag(gpgSign),
292293
"-m",
293294
`close vote and aggregate results`,

packages/core/src/generateNewVoteFolder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ export default async function generateNewVoteFolder(options: Options) {
253253
GIT_BIN,
254254
[
255255
"commit",
256+
"-n",
256257
...(gpgSign === true
257258
? ["-S"]
258259
: typeof gpgSign === "string"

packages/core/src/voteUsingGit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export async function voteAndCommit({
128128
GIT_BIN,
129129
[
130130
"commit",
131+
"-n",
131132
...getGPGSignGitFlag(gpgSign),
132133
`--author`,
133134
author,

sh/voteUsingGit.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Set-Location "$tmpDir/$path"
2222

2323

2424
git add "$username.json" | Out-Null
25-
git commit -m "vote from $username" | Out-Null
25+
git commit -n -m "vote from $username" | Out-Null
2626

2727
git push "$repoUrl" "HEAD:$branch" | Out-Null
2828

sh/voteUsingGit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $EDITOR "$tmpDir/$path/ballot.yml"
3232
# Commit the encrypted JSON vote data.
3333
(cd "$tmpDir" && \
3434
git add "$tmpDir/$path/$username.json" && \
35-
git commit -m "vote from $username")
35+
git commit -n -m "vote from $username")
3636

3737
# Pushing to the remote repository.
3838
(cd "$tmpDir" && \

0 commit comments

Comments
 (0)