blob: cde8ef7205f0afb65882c6be6508f752fe5eadc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
set -e
. $HOME/.shenv
cd $HOME/src/dotfiles
if ! git is-clean; then
echo >&2 "$0: cannot make dummy commit; dotfiles working tree not clean"
exit 1
fi
branch=$(git rev-parse --abbrev-ref HEAD)
[ "$branch" = "master" ] || git checkout master
git commit --allow-empty -S -m"empty PGP-signed commit"
[ "$branch" = "master" ] || git checkout "$branch"
|