Verified Commit 551dad85 authored by Joerg Jaspert's avatar Joerg Jaspert 🇩🇪

Better check if work needs to be done

Check where we are
Compare to where remote is.

Better than

Check where remote is
Compare to where remote is.
parent 3e9981c6
......@@ -2,7 +2,7 @@
function fetch_updates() {
cd ${masterdir}/
local beforefetch=$(git rev-parse origin/deploy)
local beforefetch=$(git rev-parse HEAD)
git fetch origin
local afterfetch=$(git rev-parse origin/deploy)
if [[ ${beforefetch} == ${afterfetch} ]]; then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment