From 702d22de99f1bd83ccf965899f3b418ef0dc7a2c Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Thu, 21 Nov 2013 17:09:25 +1030 Subject: [PATCH] Fix version_string.sh: check for .git directory was too early --- version_string.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/version_string.sh b/version_string.sh index 2035ee09..a5b46462 100755 --- a/version_string.sh +++ b/version_string.sh @@ -17,11 +17,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -if [ ! -e .git ]; then - echo "UNKNOWN-VERSION" - exit -fi - usage() { echo "Usage: ${0##*/} [options]"' @@ -86,6 +81,11 @@ done cd "$repo_path" >/dev/null +if [ ! -d .git ]; then + echo "UNKNOWN-VERSION" + exit 0 +fi + get_author_label() { # See git-commit-tree(1) for the semantics of working out the author's email # address when committing.