Permalink
Browse files

Make building docs robust against 'git describe' failing to find a ta…

…g name: falls back to 'dev'.
  • Loading branch information...
takluyver committed Feb 14, 2011
1 parent e372c2f commit 96cd6eae9b68ffe82841e4266e5f9c480a853b9a
Showing with 4 additions and 1 deletion.
  1. +4 −1 docs/gh-pages.py
View
@@ -110,7 +110,10 @@ def new_rstindex(fname, tag, desc=None):
try:
tag = sys.argv[1]
except IndexError:
- tag = sh2('git describe')
+ try:
+ tag = sh2('git describe')
+ except CalledProcessError:
+ tag = "dev" # Fallback
try:
desc = sys.argv[2]

0 comments on commit 96cd6ea

Please sign in to comment.