| Index: checkout.py
|
| diff --git a/checkout.py b/checkout.py
|
| index 5ba4ba93d3fc4d1db6880523977d611c5ec45b1a..5dbb375caad2f0dd0e37fff83f862d8e57a3218b 100644
|
| --- a/checkout.py
|
| +++ b/checkout.py
|
| @@ -594,11 +594,11 @@ class GitCheckout(CheckoutBase):
|
| try:
|
| # Look if the commit hash already exist. If so, we can skip a
|
| # 'git fetch' call.
|
| - revision = self._check_output_git(['rev-parse', revision])
|
| + revision = self._check_output_git(['rev-parse', revision]).rstrip()
|
| except subprocess.CalledProcessError:
|
| self._check_call_git(
|
| ['fetch', self.remote, self.remote_branch, '--quiet'])
|
| - revision = self._check_output_git(['rev-parse', revision])
|
| + revision = self._check_output_git(['rev-parse', revision]).rstrip()
|
| self._check_call_git(['checkout', '--force', '--quiet', revision])
|
| else:
|
| branches, active = self._branches()
|
|
|