From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars Hjemli Subject: [PATCH 5/5] Teach GIT-VERSION-GEN about the .git file Date: Mon, 18 Feb 2008 11:44:23 +0100 Message-ID: <1203331463-13857-6-git-send-email-hjemli@gmail.com> References: <1203331463-13857-1-git-send-email-hjemli@gmail.com> <1203331463-13857-2-git-send-email-hjemli@gmail.com> <1203331463-13857-3-git-send-email-hjemli@gmail.com> <1203331463-13857-4-git-send-email-hjemli@gmail.com> <1203331463-13857-5-git-send-email-hjemli@gmail.com> Cc: Junio C Hamano , Johannes Schindelin To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Mon Feb 18 11:47:27 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JR3WL-0003qi-Ty for gcvg-git-2@gmane.org; Mon, 18 Feb 2008 11:46:50 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757333AbYBRKqG (ORCPT ); Mon, 18 Feb 2008 05:46:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756993AbYBRKqF (ORCPT ); Mon, 18 Feb 2008 05:46:05 -0500 Received: from mail45.e.nsc.no ([193.213.115.45]:52730 "EHLO mail45.e.nsc.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753132AbYBRKqE (ORCPT ); Mon, 18 Feb 2008 05:46:04 -0500 Received: from localhost.localdomain (ti231210a341-0179.bb.online.no [88.88.168.179]) by mail45.nsc.no (8.13.8/8.13.5) with ESMTP id m1IAjYWN026988; Mon, 18 Feb 2008 11:45:39 +0100 (MET) X-Mailer: git-send-email 1.5.4.1.188.g3ea1f5 In-Reply-To: <1203331463-13857-5-git-send-email-hjemli@gmail.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Lars Hjemli --- GIT-VERSION-GEN | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 38a3273..2432a4f 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -11,7 +11,7 @@ LF=' if test -f version then VN=$(cat version) || VN="$DEF_VER" -elif test -d .git && +elif test -d .git -o -f .git && VN=$(git describe --abbrev=4 HEAD 2>/dev/null) && case "$VN" in *$LF*) (exit 1) ;; -- 1.5.4.1.188.g3ea1f5