!6 docker: sync daemon pkg to cli vendor

Merge pull request !6 from jing-rui/master
This commit is contained in:
openeuler-ci-bot 2020-07-06 19:00:23 +08:00 committed by Gitee
commit c8ea5bd4df
3 changed files with 40 additions and 1 deletions

View File

@ -1 +1 @@
18.09.0.104 18.09.0.105

View File

@ -0,0 +1,38 @@
From c4ead7f7e914244e43eab849cf68c34c3460b41c Mon Sep 17 00:00:00 2001
From: jingrui <jingrui@huawei.com>
Date: Thu, 14 May 2020 22:57:37 +0800
Subject: [PATCH] docker: sync cli vendor
Change-Id: I9dbfd3e2c918d47806abdcdc27bf709c0e297780
Signed-off-by: jingrui <jingrui@huawei.com>
---
.../docker/docker/builder/remotecontext/git/gitutils.go | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/components/cli/vendor/github.com/docker/docker/builder/remotecontext/git/gitutils.go b/components/cli/vendor/github.com/docker/docker/builder/remotecontext/git/gitutils.go
index 77a45beff3..a9079153e0 100644
--- a/components/cli/vendor/github.com/docker/docker/builder/remotecontext/git/gitutils.go
+++ b/components/cli/vendor/github.com/docker/docker/builder/remotecontext/git/gitutils.go
@@ -102,6 +102,10 @@ func parseRemoteURL(remoteURL string) (gitRepo, error) {
u.Fragment = ""
repo.remote = u.String()
}
+
+ if strings.HasPrefix(repo.ref, "-") {
+ return gitRepo{}, errors.Errorf("invalid refspec: %s", repo.ref)
+ }
return repo, nil
}
@@ -124,7 +128,7 @@ func fetchArgs(remoteURL string, ref string) []string {
args = append(args, "--depth", "1")
}
- return append(args, "origin", ref)
+ return append(args, "origin", "--", ref)
}
// Check if a given git URL supports a shallow git clone,
--
2.17.1

View File

@ -160,3 +160,4 @@ patch/0161-docker-Delete-stale-containerd-object-on-start-f.patch
patch/0162-docker-delete-event-is-not-need-to-process.patch patch/0162-docker-delete-event-is-not-need-to-process.patch
patch/0163-docker-stat-process-exit-file-when-kill-process-dire.patch patch/0163-docker-stat-process-exit-file-when-kill-process-dire.patch
patch/0164-docker-use-git-commit-to-store-commit-ID.patch patch/0164-docker-use-git-commit-to-store-commit-ID.patch
patch/0165-docker-sync-cli-vendor.patch