From 5b0dff8a56cd24690b361215c982b24e62e1a137 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 21 Dec 2016 20:33:43 -0500 Subject: [PATCH] git-rewrite-authors: add sanity check for missing authors file --- .bin/git-rewrite-authors | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bin/git-rewrite-authors b/.bin/git-rewrite-authors index e136e59..4e4c2bf 100755 --- a/.bin/git-rewrite-authors +++ b/.bin/git-rewrite-authors @@ -22,6 +22,10 @@ for x in cvs-authors authors ; do exit 1 fi done +if [ ! -e "${author_file}" ] ; then + echo "error: could not find ${author_file}" + exit 1 +fi git filter-branch \ --env-filter ". ${tmp};"' \ eval `decode "${GIT_AUTHOR_NAME}" AUTHOR`; \ -- 2.39.5