From b095daee22ccaa5c532402c37661a77970dd42e5 Mon Sep 17 00:00:00 2001 From: Vincent Cheng Date: Sun, 5 May 2013 02:23:52 -0700 Subject: [PATCH] rpi-update incorrectly detects latest git commit when called with BRANCH=next, because 'master' is hardcoded into the check --- rpi-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpi-update b/rpi-update index 026e521..cfb062d 100755 --- a/rpi-update +++ b/rpi-update @@ -201,7 +201,7 @@ if [[ ${FW_REV} != "" ]]; then do_update "updated to revision ${FW_REV}" elif [[ -f "${FW_REPOLOCAL}/.git/config" ]]; then # ask git server version before spending time cloning - GITREV=$(git ls-remote -h ${REPO_URI} refs/heads/master | awk '{print $1}') + GITREV=$(git ls-remote -h ${REPO_URI} refs/heads/${BRANCH} | awk '{print $1}') if [[ -f "${FW_PATH}/.firmware_revision" ]] && [[ $(cat "${FW_PATH}/.firmware_revision") == "$GITREV" ]]; then echo " *** Your firmware is already up to date" # no changes made, nothing to finalise