Created
August 7, 2012 14:41
-
-
Save t0ster/3285911 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import gitinfo as GIT_INFO | |
GIT_INFO_BRANCH = GIT_INFO.BRANCH | |
GIT_INFO_REV = GIT_INFO.REV | |
except ImportError: | |
GIT_INFO = object() | |
GIT_INFO_BRANCH = '-1' | |
GIT_INFO_REV = '-1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment