# Error while pulling from Forked repository

**URL:** https://meta.discourse.org/t/error-while-pulling-from-forked-repository/54609
**Category:** Support
**Created:** [December 21, 2016, 6:24pm UTC](https://meta.discourse.org/t/error-while-pulling-from-forked-repository/54609 "2016-12-21T18:24:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![akhilgopinath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akhilgopinath/32/121347_2.png) [@akhilgopinath](https://meta.discourse.org/u/akhilgopinath)
#### Post date: [December 21, 2016, 6:24pm UTC](https://meta.discourse.org/t/error-while-pulling-from-forked-repository/54609/1 "2016-12-21T18:24:48Z")

</div>

I was trying to pull the code from discourse forked version , i updated app.yml file with my github repository but when rebuild app i am getting this error

```
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && git config --remove-section branch.tests-passed failed with return #<Process::Status: pid 274 exit 128>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "cmd"=>["git remote remove origin", "git config --remove-section branch.master", "git config --remove-section branch.tests-passed", "git remote add origin https://github.com/akhilgopinath/discourse.git", "git fetch", "git remote set-branches --add origin tests-passed", "git remote set-branches --add origin master", "git branch -u origin/master master", "git branch -u origin/tests-passed tests-passed", "git reset --hard origin/master", "git reset --hard origin/tests-passed"]}
6e310eb9e7118b3c581192a00c1a6a552364e9db09dba5238b20b13aab8d0f3f
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

my app.yml is this

```
## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
    - exec:
        cd: $home
        cmd:
          - git remote remove origin
          - git config --remove-section branch.master
          - git config --remove-section branch.tests-passed
          - git remote add origin https://github.com/akhilgopinath/discourse.git
          - git fetch
          - git remote set-branches --add origin tests-passed
          - git remote set-branches --add origin master
          - git branch -u origin/master master
          - git branch -u origin/tests-passed tests-passed
          - git reset --hard origin/master
          - git reset --hard origin/tests-passed

```

can you please help me on this ?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [December 21, 2016, 7:31pm UTC](https://meta.discourse.org/t/error-while-pulling-from-forked-repository/54609/2 "2016-12-21T19:31:49Z")

</div>

I’m not a git expert, but I think that to make the current existing branch track a new remote branch, you don’t include the branch name at the end of the `-u` command. Try:

`- git branch -u origin/master`  
or  
`- git branch -u origin/tests-passed`

You could probably save yourself a lot of trouble by making the changes you need in a plugin instead of forking the repo.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 11, 2019, 1:58am UTC](https://meta.discourse.org/t/error-while-pulling-from-forked-repository/54609/3 "2019-04-11T01:58:35Z")

</div>



---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [April 11, 2019, 2:02am UTC](https://meta.discourse.org/t/error-while-pulling-from-forked-repository/54609/4 "2019-04-11T02:02:34Z")

</div>


