Commit 2b053766 authored by Michael Völske's avatar Michael Völske

core/update: check for updates without needing to fetch

parent 20d754a1
......@@ -50,9 +50,8 @@ main() {
logInfo "${scriptPath}"
cd "$webiscmdrootpath"
logInfo "Checking for updates... ${webiscmdrootpath}"
git remote update
LOCAL=$(git rev-parse '@{0}')
REMOTE=$(git rev-parse '@{u}')
REMOTE=$(git ls-remote origin HEAD | cut -f1)
BASE=$(git merge-base '@{0}' '@{u}')
if [ "$LOCAL" = "$REMOTE" ] || [ "$REMOTE" = "$BASE" ]; 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