Skip to content

Changes the signature of CloneWithOptions function #10366

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

Merged
merged 1 commit into from
Sep 21, 2016
Merged

Changes the signature of CloneWithOptions function #10366

merged 1 commit into from
Sep 21, 2016

Conversation

oatmealraisin
Copy link

We change it to a packed string from a boolean struct. This allows us
to use every option for clone, creating more utility for the package.

@bparees ptal? What do you think?

@oatmealraisin
Copy link
Author

[test]

// We need to check to see if we're importing reference information, for
// for error checking later on
for _, opt := range gitArgs {
if opt == "--depth=1" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we're matching between two places, "--depth=1" should be defined as a constant so they don't get out of sync in the future.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure of what you mean, should I add a "shallowGitArgs[]" array at the top?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should define a constant string for the "--depth=1" value and use it everywhere you've currently hardcoded the "--depth=1" string value. That should be sufficient.

@bparees bparees added this to the 1.4.0 milestone Aug 12, 2016
@bparees bparees changed the title Changes the signature of CloneWithOptions function [DO_NOT_MERGE] Changes the signature of CloneWithOptions function Aug 12, 2016
@bparees
Copy link
Contributor

bparees commented Aug 12, 2016

one nit and then lgtm for a post 1.3 merge.

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 19, 2016
@bparees
Copy link
Contributor

bparees commented Sep 20, 2016

@oatmealraisin needs a rebase

We change it to a packed string from a boolean struct.  This allows us
to use every option for clone, creating more utility for the package.
@oatmealraisin
Copy link
Author

@bparees Rebased

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 20, 2016
@bparees
Copy link
Contributor

bparees commented Sep 20, 2016

flake #11024
[test]

@bparees bparees changed the title [DO_NOT_MERGE] Changes the signature of CloneWithOptions function Changes the signature of CloneWithOptions function Sep 20, 2016
@bparees
Copy link
Contributor

bparees commented Sep 20, 2016

[testextended][extended:core(builds)]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to a58fdcb

@openshift-bot
Copy link
Contributor

Evaluated for origin testextended up to a58fdcb

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9047/)

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/testextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin_extended/496/) (Extended Tests: core(builds))

@bparees
Copy link
Contributor

bparees commented Sep 21, 2016

[merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Sep 21, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9047/) (Image: devenv-rhel7_5049)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to a58fdcb

@openshift-bot openshift-bot merged commit 8974c3c into openshift:master Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants