# Bug: Branch rename breaks local downstream branches

1 messages from 2014-01-29 to 2014-01-29. Participants: Alex Vallée.
Thread: https://gitlist.dev/t/35761

## Alex Vallée, 2014-01-29 21:42

Subject: Bug: Branch rename breaks local downstream branches
Message-ID: <CAJwg7ssT-BQe+tmRNvhmPgZUsAnA8+jkuU6P-vuMdJPAOwgLMw@mail.gmail.com>
URL: https://gitlist.dev/e/CAJwg7ssT-BQe%2BtmRNvhmPgZUsAnA8%2BjkuU6P-vuMdJPAOwgLMw%40mail.gmail.com

```
When tracking a local branch, renaming the tracked branch will not
update the downstream branch.

See transcript:

    avallee@gust:/tmp/repo (master)$ git co -b foo
    Switched to branch 'foo'
    avallee@gust:/tmp/repo (foo)$ git co -b bar --track
    Branch bar set up to track local branch foo.
    Switched to a new branch 'bar'
    avallee@gust:/tmp/repo (bar)$ git branch foo -m baz
    avallee@gust:/tmp/repo (bar)$ git co bar
    Already on 'bar'
    Your branch is based on 'foo', but the upstream is gone.
      (use "git branch --unset-upstream" to fixup)
    avallee@gust:/tmp/repo (bar)$

```
