-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use correct reference when using strip_component
The current implmnetation sets the environment name to the "striped" version of the name, this is then later used as the git reference when syncing environments. With the following configuration ```yaml sources: b4ldr: strip_component: "wmcs/" ignore_branch_prefixes: - production - ops - sandbox - pontoon remote: https://github.com/b4ldr/puppet-1 ``` where upstream has a branch with wmcs/production then we see the following error Unable to sync repo to unresolvable ref 'production' at /etc/puppet/code/environments/production/.git If upstream also has a production branch then the above configuration ends up syncing /etc/puppet/code/environments/production/ with the remote production branch. even thought it should be striped via `ignore_branch_prefixes` This PR updates the name object to keep hold of the original name and store it as the ref
- Loading branch information
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters