-
Notifications
You must be signed in to change notification settings - Fork 560
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
Rearrange exclude code to filter source and target URLs #2322
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2322 +/- ##
==========================================
- Coverage 10.83% 10.82% -0.01%
==========================================
Files 102 102
Lines 7706 7711 +5
==========================================
Hits 835 835
- Misses 6736 6741 +5
Partials 135 135
Continue to review full report at Codecov.
|
continue | ||
} | ||
|
||
tgtSuffix := strings.TrimPrefix(diffMsg.SecondURL, targetURL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is easy to understand: 'please exclude some files in source when mirroring'.. but it is not easy to understand 'please exclude some files in target when mirroring`.. Is there any useful use case for the latter scenario ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vadmeste , if --remove flags is passed, the files in the target will be removed. So, exclude options should be applied to both source and target.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vadmeste , if --remove flags is passed, the files in the target will be removed. So, exclude options should be applied to both source and target.
okay, then you need to update --exclude help message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Move exclude code handler to mirror-url and mirror-main Fixes minio#2319
13d558a
to
0a1f7b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Move exclude code handler to mirror-url and mirror-main
Fixes #2319