Skip to content

Commit 54abfd2

Browse files
committed
Add sign-off configuration and GPG settings in initialization scripts
Signed-off-by: Vladislav Polyakov <[email protected]>
1 parent 31f8376 commit 54abfd2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: .devcontainer/commands/initialize.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
set -e
33

4-
git config --local user.email "$(git config user.email)"
4+
git config --local format.signoff true
55
git config --local user.name "$(git config user.name)"
6+
git config --local user.email "$(git config user.email)"

Diff for: .devcontainer/commands/postCreate.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/bash
22
set -e
33

4+
if git config --get commit.gpgsign | grep -q true; then
5+
git config --global gpg.format ssh
6+
git config --global gpg.ssh.defaultKeyCommand 'ssh-add -L'
7+
git config --global gpg.ssh.allowedSigners '~/.ssh/allowed_signers'
8+
fi
49

510
# Set up YDB profile if ydb cli exists
611
if which ydb > /dev/null 2>&1; then

0 commit comments

Comments
 (0)