From 9aed830cf853214e31e72d02d4a519533eddcb5a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Jan 2017 02:47:58 +0300 Subject: Fix updatesrc script if selected not branch but tag. --- scripts/include/common.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/include/common.sh b/scripts/include/common.sh index eac8ab2..01c5d70 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -276,12 +276,11 @@ function package_update_source { cd "../src/${package}" if [ -d .git ]; then echo "git fetch origin" - git fetch origin + git fetch --all check_error $? run_switch_branch echo "git pull --rebase" - git pull --rebase - check_error $? + git pull --rebase --all return fi if [ -d .hg ]; then -- cgit v1.2.3-70-g09d2