Can't change repo in discourse docker

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