~verterok/charms/xenial/conn-check/focal

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/fetch/giturl.py

  • Committer: Guillermo Gonzalez
  • Date: 2023-06-29 16:33:24 UTC
  • Revision ID: guillermo.gonzalez@canonical.com-20230629163324-03vq3m9qtvu6f6or
update charmhelpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# limitations under the License.
14
14
 
15
15
import os
16
 
from subprocess import check_call, CalledProcessError
 
16
from subprocess import check_output, CalledProcessError, STDOUT
17
17
from charmhelpers.fetch import (
18
18
    BaseFetchHandler,
19
19
    UnhandledSource,
50
50
            cmd = ['git', 'clone', source, dest, '--branch', branch]
51
51
            if depth:
52
52
                cmd.extend(['--depth', depth])
53
 
        check_call(cmd)
 
53
        check_output(cmd, stderr=STDOUT)
54
54
 
55
55
    def install(self, source, branch="master", dest=None, depth=None):
56
56
        url_parts = self.parse_url(source)