summaryrefslogtreecommitdiffstats
path: root/git
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-03-08 07:17:11 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-03-08 07:17:19 +0000
commit4a323ad988182bb940c048aadd103e7cf8089186 (patch)
tree56b70f7859df2068a667f7393e6c5fa8e6c3985d /git
parentReleasing version 20221223. (diff)
downloadservice-tools-4a323ad988182bb940c048aadd103e7cf8089186.tar.xz
service-tools-4a323ad988182bb940c048aadd103e7cf8089186.zip
Also calling pull the current branch in git-pull-branches.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'git')
-rwxr-xr-xgit/bin/git-pull-branches5
1 files changed, 5 insertions, 0 deletions
diff --git a/git/bin/git-pull-branches b/git/bin/git-pull-branches
index 9effa17..afa2e63 100755
--- a/git/bin/git-pull-branches
+++ b/git/bin/git-pull-branches
@@ -24,6 +24,10 @@ set -e
CURRENT_BRANCH="$(git branch --show-current)"
REMOTE_BRANCHES="$(git branch -r | awk '{ print $1 }')"
+# pull current branch
+git pull
+
+# pull remote branches
for REMOTE_BRANCH in ${REMOTE_BRANCHES}
do
BRANCH="$(echo "${REMOTE_BRANCH}" | cut -d/ -f 2-)"
@@ -43,6 +47,7 @@ do
fi
done
+# checkout current branch
if [ "$(git branch --show-current)" != "${CURRENT_BRANCH}" ]
then
git checkout "${CURRENT_BRANCH}"