diff options
author | Ryan S. Arnold <ryan.arnold@linaro.org> | 2016-11-21 16:00:58 -0600 |
---|---|---|
committer | Ryan Arnold <ryan.arnold@linaro.org> | 2016-12-13 14:03:50 +0000 |
commit | 884672450622abc15eeaf15e9c257a1a0e2a7481 (patch) | |
tree | 75a13cfd5f8da1ed829cd57bcd28886bfb9e4655 /linaropy/git/workdir.py | |
parent | 560be160441e40ec3983b090deb31d2ebe439409 (diff) |
Add linaropy/colors.py to provided color codes to terminal output.
Provide a print_info() function like what is used in tcwg-release.sh
Printed information output now conforms to use print_info().
Change-Id: Idbfde7c0984a58bc7288ce6deb2a8f133167eda6
Diffstat (limited to 'linaropy/git/workdir.py')
-rw-r--r-- | linaropy/git/workdir.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linaropy/git/workdir.py b/linaropy/git/workdir.py index f729a5a..8de4a81 100644 --- a/linaropy/git/workdir.py +++ b/linaropy/git/workdir.py @@ -60,13 +60,13 @@ class Workdir(GitRepo): (workdir, track)) # TODO: Do we want to prevalidate that 'track' is a valid branch or tag? # If we don't this will just throw an exception. - print git_new_workdir(clone.clonedir(), workdir, track, _err_to_out=True, _out="/dev/null") + git_new_workdir(clone.clonedir(), workdir, track, _err_to_out=True, _out="/dev/null") else: logging.info( "Workdir(): Calling git new-workdir for workdir %s, tracking %s" % (workdir, "origin/HEAD")) # Always just checkout HEAD if the track is not specified. - print git_new_workdir(clone.clonedir(), workdir, "origin/HEAD", _err_to_out=True, _out="/dev/null") + git_new_workdir(clone.clonedir(), workdir, "origin/HEAD", _err_to_out=True, _out="/dev/null") except ErrorReturnCode as exc: # if 'workdir' is None |