diff --git a/gclone b/gclone index 16b9dcc..d16cd0f 100755 --- a/gclone +++ b/gclone @@ -30,6 +30,10 @@ else fi new_dir="$(awk -F\' '{print $2}' <<< "$out")" cd "$new_dir" + gpg_key='75D6600BEF4E8E8F' + git config user.signingkey "$gpg_key"! + git config commit.gpgsign true + git remote remove origin git push --set-upstream "$url" main fi diff --git a/gpull b/gpull index 76e4566..88ea230 100755 --- a/gpull +++ b/gpull @@ -6,6 +6,10 @@ if [[ -z "$1" ]]; then exit 1 fi +gpg_key='75D6600BEF4E8E8F' +git config user.signingkey "$gpg_key"! +git config commit.gpgsign true + project="$1" shift unset token diff --git a/gpush b/gpush index 9cee32e..a1adc02 100755 --- a/gpush +++ b/gpush @@ -14,6 +14,10 @@ if [[ -z "$token" ]]; then printf 'Failed to get token.\n' exit 1 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" if [[ "$project" == 'pass' ]]; then if [[ -n "$@" ]]; then