Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Support --targetBranch for Azure Devops Server/TFS for remote repositories #1074

Merged
merged 4 commits into from
Nov 22, 2020

Conversation

CrispyDrone
Copy link
Contributor

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Feature. This PR ensures that specifying --targetBranch option works for repositories hosted in on-premise Azure Devops Server (or TFS), when providing a non-file URI.

⤵️ What is the current behavior?

Currently specifying --targetBranch for Azure Devops Server (or TFS) has no effect if the URI is not for a local repository.

🆕 What is the new behavior (if this is a feature change)?

Specifying --targetBranch for a remote repository will now correctly apply updates to the target branch.

💥 Does this PR introduce a breaking change?

No.

🐛 Recommendations for testing

?

📝 Links to relevant issues/docs

🤔 Checklist before submitting

  • All projects build
  • Relevant documentation was updated

Add test to verify that when a custom value is provided to the
`--targetBranch` option, the `TfsSettingsReader` properly populates the
`RemoteInfo.BranchName` property in case of a remote URI for the
repository.
Currently the `repository` command does not make use of the custom value
provided through the `--targetBranch` option when the URI points to a
remote repository, not a local one.

This was the case because the `TfsSettingsReader` did not make use of
the value in case of a remote URI.

This commit simply instantiates a new `RemoteInfo` with `BranchName` set
to the provided value in case of a remote URI.
@skolima
Copy link
Collaborator

skolima commented Nov 22, 2020

Second go at #1008

@skolima skolima merged commit bde8c32 into NuKeeperDotNet:master Nov 22, 2020
@CrispyDrone CrispyDrone deleted the fix/target-branch branch November 23, 2020 15:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants