Skip to content
Permalink
Browse files

Fixed #531 -- running topaz on python when not in the git repo

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Mar 19, 2013
1 parent 5c9d5fd commit ba9afd903702c2feb298386a5db19ffd5c27fbc7
Showing with 6 additions and 1 deletion.
  1. +6 −1 topaz/main.py
@@ -40,7 +40,12 @@
""
])
COPYRIGHT = "topaz - Copyright (c) Alex Gaynor and individual contributors\n"
RUBY_REVISION = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).rstrip()
RUBY_REVISION = subprocess.check_output([
"git",
"--git-dir", os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir, ".git"),
"rev-parse", "--short", "HEAD"
]).rstrip()


@specialize.memo()
def getspace():

0 comments on commit ba9afd9

Please sign in to comment.