# Can't change repo in discourse docker

**URL:** <https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376>\
**Category:** Development\
**Created:** [August 29, 2016, 12:16pm UTC](https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376 "2016-08-29T12:16:39Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![sevenmaxis](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sevenmaxis](https://meta.discourse.org/u/sevenmaxis)\
**Post date:** [August 30, 2016, 9:30am UTC](https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376/6 "2016-08-30T09:30:37Z")

</div>

Thanks Matt, that’s what I needed  
But problem still remains. It has the right repo link, the repo itself cloned correctly but it has no affect, my view didn’t change. Maybe I should put this code like this:

```
hooks:
  before_code:
    - exec:
      cd: /var/www/discourse
      cmd:
        - sudo -u discourse git remote set-url origin https://github.com/sevenmaxis/discourse
        - sudo -u discourse git fetch origin
        - sudo -u discourse git checkout origin/master

```

---

_[View the full topic](https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376)._
