openenergymonitor / emonpi

Raspberry Pi Based Energy Monitor. Hardware, Firmware & related software for the PI.
https://guide.openenergymonitor.org/setup
270 stars 113 forks source link

On update only pull current branch #102

Closed borpin closed 5 years ago

borpin commented 5 years ago

https://github.com/openenergymonitor/emonpi/blob/1a87023a3000b611c2d99a87505e88d84e8d79eb/update/emoncms.sh#L64

Looking for somewhere to put the git command to allow a git describe to respond with the expected output, and I realised that only the current branch is pulled on update.

Why not just a git pull as that 'fetches' (everything) and 'merges' the current branch.

Either way, can git fetch --all --prune be inserted before this conditional as it simply updates git with the commit history rather than changing anything.

borpin commented 5 years ago

closed via #114