~openstack-charmers/charms/trusty/swift-proxy/trunk

« back to all changes in this revision

Viewing changes to charmhelpers/fetch/giturl.py

  • Committer: Corey Bryant
  • Date: 2016-01-14 13:42:09 UTC
  • mfrom: (133.1.1 stable/16.04.remote)
  • Revision ID: corey.bryant@canonical.com-20160114134209-gh5nkifz4jjfd5uf
[corey.bryant, r=jamespage] Sync charm-helpers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
            cmd = ['git', '-C', dest, 'pull', source, branch]
50
50
        else:
51
51
            cmd = ['git', 'clone', source, dest, '--branch', branch]
52
 
        if depth:
53
 
            cmd.extend(['--depth', depth])
 
52
            if depth:
 
53
                cmd.extend(['--depth', depth])
54
54
        check_call(cmd)
55
55
 
56
56
    def install(self, source, branch="master", dest=None, depth=None):