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

git init

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