From 25106872ea5b5fdf60fb3ed3682146d38d0d3952 Mon Sep 17 00:00:00 2001 From: Someone Date: Tue, 23 Feb 2016 02:25:58 +0100 Subject: [PATCH] More generic/less destructive filter branch call. --- filterBranchEnvEdit.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/filterBranchEnvEdit.sh b/filterBranchEnvEdit.sh index b093627..6d34ff6 100755 --- a/filterBranchEnvEdit.sh +++ b/filterBranchEnvEdit.sh @@ -21,18 +21,14 @@ echo "Will rewrite name, email and commitTS in repo `pwd` in ${SLEEPTIME} sec." sleep $SLEEPTIME git filter-branch -f --env-filter ' - if [ "$GIT_AUTHOR_EMAIL" = "git@git.somenet.org" ]; then + if [ "$GIT_AUTHOR_EMAIL" = "git@dev.somenet.org" ]; then export GIT_AUTHOR_EMAIL="git@git.somenet.org" export GIT_AUTHOR_NAME="git" fi - if [ "$GIT_AUTHOR_EMAIL" = "root@dev.somenet.org" ]; then - export GIT_AUTHOR_EMAIL="git@git.somenet.org" - export GIT_AUTHOR_NAME="git" - fi - if [ "$GIT_AUTHOR_EMAIL" = "jan@jvales.net" ]; then - export GIT_AUTHOR_EMAIL="someone@somenet.org" - export GIT_AUTHOR_NAME="Someone" - fi +# if [ "$GIT_AUTHOR_EMAIL" = "jan@jvales.net" ]; then +# export GIT_AUTHOR_EMAIL="someone@somenet.org" +# export GIT_AUTHOR_NAME="Someone" +# fi export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" -- 2.43.0