]> git.wh0rd.org - home.git/blobdiff - .bin/git-rewrite-authors
cros-board: update
[home.git] / .bin / git-rewrite-authors
index 601700805230e52478c77c9d3dbdac79ec034e80..f35435ed6ea04791ab287626035ef0272aa8a944 100755 (executable)
@@ -2,7 +2,7 @@
 
 tmp=$(mktemp -t "${0##*/}.XXXXXX")
 trap "rm -rf '${tmp}'" EXIT
-cat << \EOF > ${tmp}
+cat <<\EOF >"${tmp}"
 decode() {
        awk -vid="$1" -vtype="$2" '$1 == id {
                match($0, /^[^=]*=\s*([^<]*)<([^>]*)>/, a);
@@ -29,7 +29,8 @@ if [ ! -e "${author_file}" ] ; then
        echo "error: could not find ${author_file}"
        exit 1
 fi
-git filter-branch \
+FILTER_BRANCH_SQUELCH_WARNING=1 \
+exec git filter-branch \
        --env-filter ". '${tmp}';"' \
                eval "$(decode "${GIT_AUTHOR_NAME}" AUTHOR)"; \
                eval "$(decode "${GIT_COMMITTER_NAME}" COMMITTER)"; \