mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Shallow clone using git to build images.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
c4914f071f
commit
36fbf4b864
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ func Build(d *daemon.Daemon, buildConfig *Config) error {
|
|||
}
|
||||
defer os.RemoveAll(root)
|
||||
|
||||
if output, err := exec.Command("git", "clone", "--recursive", buildConfig.RemoteURL, root).CombinedOutput(); err != nil {
|
||||
if output, err := exec.Command("git", "clone", "--depth", "1", "--recursive", buildConfig.RemoteURL, root).CombinedOutput(); err != nil {
|
||||
return fmt.Errorf("Error trying to use git: %s (%s)", err, output)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue