Skip to content

Commit 6913fd7

Browse files
committed
feat(odoo_repos): add manual branch checkout instructions to README.md
- Added section detailing how to manually checkout a specific branch in Odoo repositories - Includes example commands for fetching and pulling a remote branch using ssh-agent - Improves documentation clarity for developers managing custom Odoo branches
1 parent 4b578c2 commit 6913fd7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

roles/odoo_repos/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,13 @@ Navigate into the repo directory on the server `cd /usr/share/odoo01/enterprise`
7575
COMMIT=13db977fca67da8278fbdc5753f425583b304c67
7676
sudo ssh-agent /bin/bash -c "ssh-add /home/bot/.ssh/id_ed25519; git checkout $COMMIT"
7777
```
78+
79+
### Checkout branch manually
80+
81+
Navigate into the repo directory on the server `cd /usr/share/odoo01/addons/$REPO` and run:
82+
83+
```bash
84+
BRANCH=18.0-sale_triple_discount-sps
85+
sudo ssh-agent /bin/bash -c "ssh-add /home/bot/.ssh/id_ed25519; git fetch origin $BRANCH"
86+
sudo ssh-agent /bin/bash -c "ssh-add /home/bot/.ssh/id_ed25519; git pull origin $BRANCH"
87+
```

0 commit comments

Comments
 (0)