# Request: Allow renaming of cloned repositories

**URL:** <https://www.finalbuilder.com/forums/t/request-allow-renaming-of-cloned-repositories/5637>\
**Category:** Discussion\
**Created:** [August 14, 2018, 3:23am UTC](https://www.finalbuilder.com/forums/t/request-allow-renaming-of-cloned-repositories/5637 "2018-08-14T03:23:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lysaer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/cc9497/32.png) [@lysaer](https://www.finalbuilder.com/forums/u/lysaer)\
**Post date:** [August 14, 2018, 3:23am UTC](https://www.finalbuilder.com/forums/t/request-allow-renaming-of-cloned-repositories/5637/1 "2018-08-14T03:23:22Z")

</div>

Would it be possible to add an option to rename a cloned configuration or project repository? We have 7 development teams, who all work on a large number of different solutions that we run through the CI process. Cloning projects and configurations is very handy, but then we have to recreate all the configuration level repositories. If there was an option to rename them when cloning that would be more efficient - we would only need to updated the branch being monitored after cloning.

For example, I'm currently using a Project for each team, and a Configuration for each app like so:

Project: DevTeam1  
 Configuration: ProductA  
 Repository: TFSRoot\DevTeam1\ProductABranch  
 Configuration: ProductB  
 Repository: TFSRoot\DevTeam1\ProductBBranch

When I clone this project for DevTeam2, the only difference in most of the information is the team name. So having to recreate every repository for a project with 18 configurations in it is painful.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 15, 2018, 12:47pm UTC](https://www.finalbuilder.com/forums/t/request-allow-renaming-of-cloned-repositories/5637/2 "2018-08-15T12:47:48Z")

</div>

Hi Andy,

We will add an item to our to-do list to allow repositories to be copied and renamed when cloning in the future.

Meanwhile, we would advise having one project-level repository and using branch mapping to set the default branch for each configuration. Set the Relative Folder for this repository to "DevTeam1" and the Branches to Monitor to "All Branches" or "By Pattern". Select the Default Branch for each configuration in the [Configuration Repository Branch Mappings dialog](https://wiki.finalbuilder.com/display/continua/Repositories#Repositories-ConfigurationRepositoryBranchMappings).

This would reduce the number of repositories to recreate when cloning a project, and, depending on the size of team folder, may also improve performance as there will be less repository checkers polling repositories every so often.

---

<div class="post-metadata">

**Author:** ![lysaer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/cc9497/32.png) [@lysaer](https://www.finalbuilder.com/forums/u/lysaer)\
**Post date:** [August 20, 2018, 9:44am UTC](https://www.finalbuilder.com/forums/t/request-allow-renaming-of-cloned-repositories/5637/3 "2018-08-20T09:44:58Z")

</div>

Thanks Dave, did not think about doing it that way. Went in and cleaned up and changed to project repositories per your advice. It would still be handy to not have to recreate that repository for every project, though.

---

<div class="post-metadata">

**Author:** ![lysaer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/cc9497/32.png) [@lysaer](https://www.finalbuilder.com/forums/u/lysaer)\
**Post date:** [August 22, 2018, 9:13am UTC](https://www.finalbuilder.com/forums/t/request-allow-renaming-of-cloned-repositories/5637/4 "2018-08-22T09:13:14Z")

</div>

Ok, I don't think this setup is working like we expect it to. Not sure if this is a bug or not...

We have the project repository set to All Branches, and it is successfully monitoring and catching changesets.

 ![](https://www.finalbuilder.com/forums/uploads/default/original/2X/b/b600ecfeb39d6e5cfdd5fb274cb38a662bca0e50.png)

In the configuration Mapping, we have set the Default Branch in the Repository to a specific branch.

 ![](https://www.finalbuilder.com/forums/uploads/default/original/2X/8/816be626d3113e979fdeb738460d1a775e7b7a57.png)

In the configuration, we have the Trigger set to Repository, Default Branch.

 ![](https://www.finalbuilder.com/forums/uploads/default/original/2X/8/89b0436c3c37c10df0a5a1abfd57a7c015a82932.png)

However, the builds are \*not\* triggering from changesets on the branch.  
If we change the trigger to All Branches, it will trigger on a changeset, but it triggers if any check in is made in the monitored folder. I've attached screenhots of our settings (2 more in subsequent reply)

We are currently using verion 1.8.1.971

---

<div class="post-metadata">

**Author:** ![lysaer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/cc9497/32.png) [@lysaer](https://www.finalbuilder.com/forums/u/lysaer)\
**Post date:** [August 22, 2018, 9:13am UTC](https://www.finalbuilder.com/forums/t/request-allow-renaming-of-cloned-repositories/5637/5 "2018-08-22T09:13:56Z")

</div>

![](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/45121943190fa2ff72b97c3f429b7e9dbd119b28.png)

---

<div class="post-metadata">

**Author:** ![lysaer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/cc9497/32.png) [@lysaer](https://www.finalbuilder.com/forums/u/lysaer)\
**Post date:** [August 22, 2018, 9:16am UTC](https://www.finalbuilder.com/forums/t/request-allow-renaming-of-cloned-repositories/5637/6 "2018-08-22T09:16:09Z")

</div>

oops, missed a screenshot in my initial reply. This is the TFS tab of the repository:

 ![](https://www.finalbuilder.com/forums/uploads/default/original/2X/2/2907a6920e3a71e0299f1eeda0e97f97879a79cf.png)

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 23, 2018, 3:00am UTC](https://www.finalbuilder.com/forums/t/request-allow-renaming-of-cloned-repositories/5637/7 "2018-08-23T03:00:16Z")

</div>

Hi Andy,

The Default Branch setting in the Mappings dialog defines the "Branch to build by default when **manually** starting a build for this configuration". This does not apply to triggers.

A trigger which set to trigger on the default branch, runs a build when there is a new changeset on the repository Default Branch. This is set in the repository dialog (under the Branches tab). Ensure that this is set this to "/Products/Advisor". Alternatively, you can set a specific branch for the trigger, by setting the Trigger On pattern matched branches option in the trigger dialog to "/Products/Advisor".

---

<div class="post-metadata">

**Author:** ![lysaer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/cc9497/32.png) [@lysaer](https://www.finalbuilder.com/forums/u/lysaer)\
**Post date:** [August 23, 2018, 2:35am UTC](https://www.finalbuilder.com/forums/t/request-allow-renaming-of-cloned-repositories/5637/8 "2018-08-23T02:35:37Z")

</div>

That's confusing but ok. I guess pattern matching is how we'll be doing things.
