diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-28 02:47:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-28 02:47:58 +0300 |
commit | 9aed830cf853214e31e72d02d4a519533eddcb5a (patch) | |
tree | 0787e96d86b4d7e48299d2d0ec312183bddf5507 | |
parent | dd4798af78eca1d436cd8043652d69c4fd94ec28 (diff) | |
download | spm-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.sh | 5 |
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 |