Skip to content

Instantly share code, notes, and snippets.

project = 'hi'
commit = None
with lcd("%s" % (project)):
commit = local("git log -g --pretty=%B -n 1")
print commit #This prints the right message
print commit # This doesn't