summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-28 02:47:58 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-28 02:47:58 +0300
commit9aed830cf853214e31e72d02d4a519533eddcb5a (patch)
tree0787e96d86b4d7e48299d2d0ec312183bddf5507
parentdd4798af78eca1d436cd8043652d69c4fd94ec28 (diff)
downloadspm-9aed830cf853214e31e72d02d4a519533eddcb5a.tar.gz
spm-9aed830cf853214e31e72d02d4a519533eddcb5a.tar.bz2
spm-9aed830cf853214e31e72d02d4a519533eddcb5a.tar.xz
spm-9aed830cf853214e31e72d02d4a519533eddcb5a.zip
Fix updatesrc script if selected not branch but tag.
-rw-r--r--scripts/include/common.sh5
1 files 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