Skip to content

Commit

Permalink
Redirect git checkout output to /dev/null
Browse files Browse the repository at this point in the history
This avoids cluttering the log file - when redirecting STDOUT, git
checkout still displays information about the previous and new HEAD.
  • Loading branch information
dregad committed Sep 20, 2017
1 parent 722540a commit e8b45c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docbook-manual-repo.py
Expand Up @@ -66,7 +66,7 @@ def git_current_branch():


def git_checkout(branch):
os.system('git checkout -f %s' % branch)
os.system('git checkout -f %s >/dev/null' % branch)


def main():
Expand Down

0 comments on commit e8b45c2

Please sign in to comment.