Skip to content

Remove -t option from fetch command#77

Closed
algoRhythm99 wants to merge 1 commit intojenkinsci:masterfrom
algoRhythm99:master
Closed

Remove -t option from fetch command#77
algoRhythm99 wants to merge 1 commit intojenkinsci:masterfrom
algoRhythm99:master

Conversation

@algoRhythm99
Copy link

I've removed the -t option from the fetch command, as requested in https://issues.jenkins-ci.org/browse/JENKINS-6124.

@ghost
Copy link

ghost commented Jul 25, 2012

This isn't fixing a bug, just a bad design decision, and it is now changing default behavior from past releases of the plugin. This should not be done in this way. It may have been wrong to fetch with -t, but we have to live with the consequences of bad decisions.

Make the -t controlled via optional parameter, and leave it on by default (maintaining the current process).

@buildhive
Copy link

Jenkins » git-plugin #40 UNSTABLE
Looks like there's a problem with this pull request
(what's this?)

@kctigerhawk
Copy link

It is not working as documented.

The documentation no where states that all tags will be fetched, and it specifically says in the help text for the refspec that nothing other than the specified refspec will be fetched.

Generally, code that does not perform as documented is a bug.

How about, if the code is modified so that if a refspec is specified the "-t" is not added otherwise it is. Then behavior would match documentation?

@kctigerhawk
Copy link

Created a new issue https://issues.jenkins-ci.org/browse/JENKINS-14572 to directly address the bug and set aside the 'bad design decision' issue for now.

@ndeloof
Copy link
Contributor

ndeloof commented Jul 25, 2012

documentation may be wrong, and should then be fixed, but the existing behavior must be kept for backward compatibility

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.

5 participants