rpi-update incorrectly detects latest git commit when called with BRANCH=next #91

Merged
merged 1 commit into from May 5, 2013

Conversation

Projects
None yet
2 participants
Contributor

Vincent-C commented May 5, 2013

"BRANCH=next rpi-update" will always fetch the latest git commit from the next branch, and re-downloads everything even if the local firmware git repo is up to date (which is annoying since rpi-update from the master branch of the firmware repo doesn't have this problem). The root cause is that the master branch is hardcoded into the git revision check:

GITREV=$(git ls-remote -h ${REPO_URI} refs/heads/master | awk '{print $1}')

This pull request fixes this issue (I tested with UPDATE_SELF=0 after modifying the script, and it works). Thanks!

@Vincent-C Vincent-C rpi-update incorrectly detects latest git commit when called with BRA…
…NCH=next, because 'master' is hardcoded into the check
b095dae

@popcornmix popcornmix added a commit that referenced this pull request May 5, 2013

@popcornmix popcornmix Merge pull request #91 from Vincent-C/master
rpi-update incorrectly detects latest git commit when called with BRANCH=next
3b81f95

@popcornmix popcornmix merged commit 3b81f95 into Hexxeh:master May 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment