From: Samuel Tardieu <sam@rfc1149.net>
To: git@vger.kernel.org
Subject: [StGit PATCH 2/2] Always resolve "git describe" to something
Date: Thu, 09 Oct 2008 11:02:02 +0200 [thread overview]
Message-ID: <20081009090202.12637.2907.stgit@arrakis.enst.fr> (raw)
In-Reply-To: <20081009090157.12637.45887.stgit@arrakis.enst.fr>
Sometimes, "git describe" cannot describe the current version. Use
"--always" so that we have a fallback.
---
stgit/version.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/stgit/version.py b/stgit/version.py
index d57053d..05fa8e9 100644
--- a/stgit/version.py
+++ b/stgit/version.py
@@ -8,7 +8,7 @@ class VersionUnavailable(StgException):
def git_describe_version():
path = sys.path[0]
try:
- v = run.Run('git', 'describe', '--tags', '--abbrev=4'
+ v = run.Run('git', 'describe', '--tags', '--abbrev=4', '--always'
).cwd(path).output_one_line()
except run.RunException, e:
raise VersionUnavailable(str(e))
prev parent reply other threads:[~2008-10-09 9:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-09 9:01 [StGit PATCH 1/2] Handle "git diff-tree --stdin" error Samuel Tardieu
2008-10-09 9:02 ` Samuel Tardieu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081009090202.12637.2907.stgit@arrakis.enst.fr \
--to=sam@rfc1149.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).