* [PATCH] git-submodule: Don't blame when git-describe fails
@ 2008-03-02 14:42 Ping Yin
0 siblings, 0 replies; 2+ 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] 2+ messages in thread
* [PATCH] git-submodule: Don't blame when git-describe fails
@ 2008-03-02 14:45 Ping Yin
0 siblings, 0 replies; 2+ 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] 2+ messages in thread
end of thread, other threads:[~2008-03-02 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-02 14:42 [PATCH] git-submodule: Don't blame when git-describe fails Ping Yin
-- strict thread matches above, loose matches on Subject: below --
2008-03-02 14:45 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).