git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-submodule: Don't blame when git-describe fails
@ 2008-03-02 14:45 Ping Yin
  2008-03-02 16:51 ` Re* " Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Ping Yin @ 2008-03-02 14:45 UTC (permalink / raw)
  To: gitster; +Cc: git, Ping Yin

Avoid 'fatal: cannot describe' message

Signed-off-by: Ping Yin <pkufranky@gmail.com>
---
 git-submodule.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-submodule.sh b/git-submodule.sh
index a6aaf40..5e8b84f 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -315,7 +315,7 @@ set_name_rev () {
 		cd "$1" && {
 			git describe "$2" 2>/dev/null ||
 			git describe --tags "$2" 2>/dev/null ||
-			git describe --contains --tags "$2"
+			git describe --contains --tags "$2" 2>/dev/null
 		}
 	) )
 	test -z "$revname" || revname=" ($revname)"
-- 
1.5.4.3.347.g5314c


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH] git-submodule: Don't blame when git-describe fails
@ 2008-03-02 14:42 Ping Yin
  0 siblings, 0 replies; 5+ messages in thread
From: Ping Yin @ 2008-03-02 14:42 UTC (permalink / raw)
  To: gitster; +Cc: git, Ping Yin

Avoid 'fatal: cannot describe' message
---
 git-submodule.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-submodule.sh b/git-submodule.sh
index a6aaf40..5e8b84f 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -315,7 +315,7 @@ set_name_rev () {
 		cd "$1" && {
 			git describe "$2" 2>/dev/null ||
 			git describe --tags "$2" 2>/dev/null ||
-			git describe --contains --tags "$2"
+			git describe --contains --tags "$2" 2>/dev/null
 		}
 	) )
 	test -z "$revname" || revname=" ($revname)"
-- 
1.5.4.3.347.g5314c


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-02 22:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-02 14:45 [PATCH] git-submodule: Don't blame when git-describe fails Ping Yin
2008-03-02 16:51 ` Re* " Junio C Hamano
2008-03-02 17:17   ` Ping Yin
2008-03-02 22:41   ` Shawn O. Pearce
  -- strict thread matches above, loose matches on Subject: below --
2008-03-02 14:42 Ping Yin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).