miekg / pgo

container gitops in a simple way
GNU General Public License v3.0
11 stars 1 forks source link

git: check for transient errors on pull #59

Closed miekg closed 7 months ago

miekg commented 7 months ago

if we get 'connection refused', don't assume our git repo is borked. This is done by checking the error message of git - which is not great.

Better would be to 'git fetch' and 'git merge', but unlike 'git pull' does cmds don't report what files are changed? (Or do they). Otherwise we could ignore 'git fetch' errors and only delete the repo on 'git merge' failures.

Signed-off-by: Miek Gieben miek@miek.nl