PLAT-2, DEPL-5474 fix unnecessary commits and branch handling

- do not commit if no changes
- fix branch handling the get was ok, the put was wrong