#!/bin/sh LOCK_FILE=".git/.amend-lock" if [ -f "$LOCK_FILE" ]; then rm "$LOCK_FILE" exit 0 fi touch "$LOCK_FILE" export GIT_COMMITTER_NAME="Qrius" export GIT_COMMITTER_EMAIL="qrius@quirio.net" export GIT_AUTHOR_NAME="Qrius" export GIT_AUTHOR_EMAIL="qrius@quirio.net" echo "Doing commit amend" git commit --amend --no-edit --author="$GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL>"