module-tools & git clone : specify --depth only when necessary 5.3.8
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 3 Apr 2015 08:26:59 +0000 (10:26 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 3 Apr 2015 08:26:59 +0000 (10:26 +0200)
Merge branch 'master' of ssh://git.onelab.eu/git/build

1  2 
lxc-tags.mk
module-tools.py
onelab-tags.mk

diff --cc lxc-tags.mk
Simple merge
diff --cc module-tools.py
@@@ -280,9 -280,9 +280,10 @@@ class GitRepository
                  return line.split()[2]
  
      @classmethod
--    def clone(cls, remote, local, options, depth=0):
++    def clone(cls, remote, local, options, depth=None):
          Command("rm -rf %s" % local, options).run_silent()
--        Command("git clone --depth %d %s %s" % (depth, remote, local), options).run_fatal()
++        depth_option = "" if depth is None else " --depth {}".format(depth)
++        Command("git clone{} {} {}".format(depth_option, remote, local), options).run_fatal()
          return GitRepository(local, options)
  
      @classmethod
diff --cc onelab-tags.mk
Simple merge