# Git branch dependency between stan and lib/stan\_math

**URL:** <https://discourse.mc-stan.org/t/git-branch-dependency-between-stan-and-lib-stan-math/291>\
**Category:** Developers\
**Created:** [March 8, 2017, 9:19pm UTC](https://discourse.mc-stan.org/t/git-branch-dependency-between-stan-and-lib-stan-math/291 "2017-03-08T21:19:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitzimorris](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/mitzimorris/32/29_2.png) [@mitzimorris](https://discourse.mc-stan.org/u/mitzimorris)\
**Post date:** [March 8, 2017, 9:19pm UTC](https://discourse.mc-stan.org/t/git-branch-dependency-between-stan-and-lib-stan-math/291/1 "2017-03-08T21:19:00Z")

</div>

how do I get the dependencies right between a branch of stan and lib/stan\_math?

this PR is failing: [https://github.com/stan-dev/stan/pull/2244](https://github.com/stan-dev/stan/pull/2244)

I started this branch in order to add vector and matrix expressions - this required adding a specialization to lib/stan\_math that was merged into the develop branch.  
the PR is testing against the old version of lib/stan\_math, which fails.  
what is the proper incantation to make it run against the current develop branch of lib/stan\_math?

is this in the wiki? couldn’t find it.

---

<div class="post-metadata">

**Author:** ![mitzimorris](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/mitzimorris/32/29_2.png) [@mitzimorris](https://discourse.mc-stan.org/u/mitzimorris)\
**Post date:** [March 9, 2017, 3:25am UTC](https://discourse.mc-stan.org/t/git-branch-dependency-between-stan-and-lib-stan-math/291/2 "2017-03-09T03:25:27Z")

</div>

problem solved - updates to stan/math submodule generate a PR for stan repo - merged [https://github.com/stan-dev/stan/pull/2243](https://github.com/stan-dev/stan/pull/2243) and all is good.
