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

Added support for -nofetch command line argument and 'NoFetch' MSBuild T... #410

Merged
merged 3 commits into from
Apr 6, 2015

Conversation

martaver
Copy link

...ask parameter, to suppress fetching from remotes during execution.

Up for review and discussion. I had no problem feeding in the noFetch argument, but I couldn't find an obvious way to test whether or not GitVersion was trying to fetch from a remote or not given the current test fixtures available. Any pointers?

…d Task parameter, to suppress fetching from remotes during execution.
{
if (string.IsNullOrEmpty(gitDirectory))
{
throw new WarningException("Failed to find .git directory on agent.");
}

GitHelper.NormalizeGitDirectory(gitDirectory, authentication);
if (!noFetch)
Copy link
Contributor

Choose a reason for hiding this comment

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

To save this duplication can we pass it down to NormalizeGitDirectory, otherwise it will be easy to forget this step with new Build Servers

Sebastian Nemeth added 2 commits March 31, 2015 15:42
1. Passed down noFetch param to NormalizeGitDirectory method.
2. Updated ArgumentParser to ensure that individual switches such as -nofetch do not interfere with existing functionality.

ArgumentParser should also now support switches with multiple values such as '-myswitch value1 value2' if the validation checks are removed.
@JakeGinnivan JakeGinnivan merged commit b677335 into GitTools:master Apr 6, 2015
@JakeGinnivan
Copy link
Contributor

Thanks for the PR

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.

None yet

2 participants