Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: not copy parent dir when path contains dot #2920

Closed
wants to merge 1 commit into from

Conversation

ZYecho
Copy link
Contributor

@ZYecho ZYecho commented Jun 20, 2019

Signed-off-by: zhangyue zy675793960@yeah.net

Ⅰ. Describe what this PR did

when path contains dot, such as test/. , we should not copy the test dir into dst, we just need to copy the file& dir under test/ into dst.

Ⅱ. Does this pull request fix one issue?

None.

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

added.

Ⅳ. Describe how to verify it

wait for CI.

Ⅴ. Special notes for reviews

None.

@codecov
Copy link

codecov bot commented Jun 20, 2019

Codecov Report

Merging #2920 into master will decrease coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2920      +/-   ##
==========================================
- Coverage   68.23%   68.11%   -0.13%     
==========================================
  Files         291      291              
  Lines       18328    18329       +1     
==========================================
- Hits        12506    12484      -22     
- Misses       4368     4379      +11     
- Partials     1454     1466      +12
Flag Coverage Δ
#criv1alpha2_test 34.74% <0%> (-0.09%) ⬇️
#integration_test_0 36.08% <0%> (+0.01%) ⬆️
#integration_test_1 35.5% <100%> (-0.01%) ⬇️
#integration_test_2 35.93% <0%> (-0.11%) ⬇️
#integration_test_3 35.64% <100%> (ø) ⬆️
#node_e2e_test 34.21% <0%> (-0.15%) ⬇️
#unittest 27.98% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
daemon/mgr/container_copy.go 57.73% <100%> (+0.25%) ⬆️
cri/ocicni/netns.go 58.1% <0%> (-2.71%) ⬇️
ctrd/container.go 51.62% <0%> (-2.68%) ⬇️
daemon/mgr/container.go 59.1% <0%> (-1.25%) ⬇️
cri/v1alpha2/cri.go 63.78% <0%> (-0.26%) ⬇️
daemon/mgr/container_utils.go 76.76% <0%> (+0.5%) ⬆️
apis/server/utils.go 75% <0%> (+3.84%) ⬆️
ctrd/watch.go 78.37% <0%> (+5.4%) ⬆️

@pouchrobot pouchrobot added kind/bug This is bug report for project size/S labels Jun 20, 2019
@ZYecho ZYecho requested a review from fuweid June 20, 2019 08:33
Signed-off-by: zhangyue <zy675793960@yeah.net>
@CLAassistant
Copy link

CLAassistant commented May 21, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


zhangyue seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@fuweid fuweid closed this May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is bug report for project size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants