# Long lived branch not updating

**URL:** <https://community.sonarsource.com/t/long-lived-branch-not-updating/102201>\
**Category:** SonarQube Cloud\
**Created:** [October 7, 2023, 7:01pm UTC](https://community.sonarsource.com/t/long-lived-branch-not-updating/102201 "2023-10-07T19:01:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremy-rifkin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jeremy-rifkin/32/50000_2.png) [@jeremy-rifkin](https://community.sonarsource.com/u/jeremy-rifkin)\
**Post date:** [October 7, 2023, 7:01pm UTC](https://community.sonarsource.com/t/long-lived-branch-not-updating/102201/1 "2023-10-07T19:01:21Z")

</div>

I’m trying to make my dev branch recognized as a long lived branch but it’s not being recognized as such:

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/3/4/34f6b9ab961294e7919cc0d1ca078815a614241b.png)

Even after the analysis re-runs dev is still stuck as a short lived branch. Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 9, 2023, 3:14pm UTC](https://community.sonarsource.com/t/long-lived-branch-not-updating/102201/2 "2023-10-09T15:14:51Z")

</div>

Hi,

Did you set the branch pattern to `(main|dev)` before or after your first analysis of `dev`? Each branch’s type is set immutable on the first analysis. Setting the pattern and re-analyzing will not convert a short-lived branch to a long-lived branch.

Your only option here would be to delete `dev` and reanalyze.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![jeremy-rifkin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jeremy-rifkin/32/50000_2.png) [@jeremy-rifkin](https://community.sonarsource.com/u/jeremy-rifkin)\
**Post date:** [October 10, 2023, 1:46am UTC](https://community.sonarsource.com/t/long-lived-branch-not-updating/102201/3 "2023-10-10T01:46:12Z")

</div>

Hi, thank you so much. That would explain it. This is kind of frustrating behavior and I hope it can change some day.
