added auto-signed commits hopefully

This commit is contained in:
LuKe Tidd 2022-11-18 16:29:22 -05:00
parent 4d66638bdd
commit b9ab70213c
Signed by: luke
GPG Key ID: 75D6600BEF4E8E8F
3 changed files with 12 additions and 0 deletions

4
gclone
View File

@ -30,6 +30,10 @@ else
fi fi
new_dir="$(awk -F\' '{print $2}' <<< "$out")" new_dir="$(awk -F\' '{print $2}' <<< "$out")"
cd "$new_dir" cd "$new_dir"
gpg_key='75D6600BEF4E8E8F'
git config user.signingkey "$gpg_key"!
git config commit.gpgsign true
git remote remove origin git remote remove origin
git push --set-upstream "$url" main git push --set-upstream "$url" main
fi fi

4
gpull
View File

@ -6,6 +6,10 @@ if [[ -z "$1" ]]; then
exit 1 exit 1
fi fi
gpg_key='75D6600BEF4E8E8F'
git config user.signingkey "$gpg_key"!
git config commit.gpgsign true
project="$1" project="$1"
shift shift
unset token unset token

4
gpush
View File

@ -14,6 +14,10 @@ if [[ -z "$token" ]]; then
printf 'Failed to get token.\n' printf 'Failed to get token.\n'
exit 1 exit 1
fi fi
gpg_key='75D6600BEF4E8E8F'
git config user.signingkey "$gpg_key"!
git config commit.gpgsign true
url="https://luke:${token}@git.drheck.dev/luke/${project}.git" url="https://luke:${token}@git.drheck.dev/luke/${project}.git"
if [[ "$project" == 'pass' ]]; then if [[ "$project" == 'pass' ]]; then
if [[ -n "$@" ]]; then if [[ -n "$@" ]]; then