From 28deff01b89326364f652940bb072221828d34fc Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 4 Jul 2017 17:38:45 -0500 Subject: [PATCH] Fix a bug in mfup --- buildroot/share/git/mfup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot/share/git/mfup b/buildroot/share/git/mfup index cb6abda9a..cd65c46cc 100755 --- a/buildroot/share/git/mfup +++ b/buildroot/share/git/mfup @@ -28,7 +28,7 @@ echo "Fetching upstream ($ORG/$REPO)..." git fetch upstream echo ; echo "Bringing $TARG up to date..." -if [[ git checkout -q $TARG ]]; then +if [[ ! $(git checkout -q $TARG) ]]; then git reset --hard upstream/$TARG git push -f origin else