Skip to content

Instantly share code, notes, and snippets.

@bmacauley
Last active July 15, 2016 14:07
Show Gist options
  • Save bmacauley/4452480 to your computer and use it in GitHub Desktop.
Save bmacauley/4452480 to your computer and use it in GitHub Desktop.
fabric...local() bug?
# not working
def svn_commit():
"""commit any changes to svn"""
mod = local('svn st -q',capture=True)
if mod != '':
print "Modified:"
print mod
#working
def svn_commit():
"""commit any changes to svn"""
mod = local('svn st -q 2>&1',capture=True)
if mod != '':
print "Modified:"
print mod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment