summaryrefslogtreecommitdiffstats
path: root/test/repos/gpg.sh
blob: 646f785b1e4bcfef0b71da200cbe108ec7afe479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -ex; rm -rf repo; mkdir repo; cd repo

git init
git config user.email "test@example.com"
git config user.name "Lazygit Tester"


git config gpg.program $(which gpg)
git config user.signingkey E304229F # test key
git config commit.gpgsign true
git config credential.helper store
git config credential.helper cache 1

touch foo
git add foo

touch bar
git add bar