]> git.wh0rd.org - home.git/commitdiff
git-rewrite-authors: add sanity check for missing authors file
authorMike Frysinger <vapier@gentoo.org>
Thu, 22 Dec 2016 01:33:43 +0000 (20:33 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 22 Dec 2016 01:33:43 +0000 (20:33 -0500)
.bin/git-rewrite-authors

index e136e59876d54c26796bd02294c868c6f3c2649b..4e4c2bf8b112d9659434834894ecb366d74fdb5e 100755 (executable)
@@ -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`; \