summaryrefslogtreecommitdiffstats
path: root/git/bin/git-pull-branches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2024-08-21 03:45:44 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2024-08-21 03:45:44 +0000
commit1970ffe724ef6eeffa9a5e36e3dfec7410c76b01 (patch)
tree50390631878e393924e85d478d3a05d1f8906186 /git/bin/git-pull-branches
parentUpdating dehydrated todo. (diff)
downloadservice-tools-1970ffe724ef6eeffa9a5e36e3dfec7410c76b01.tar.xz
service-tools-1970ffe724ef6eeffa9a5e36e3dfec7410c76b01.zip
Getting remote branches after pull to account for newly added branches in git-pull-branches.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'git/bin/git-pull-branches')
-rwxr-xr-xgit/bin/git-pull-branches3
1 files changed, 2 insertions, 1 deletions
diff --git a/git/bin/git-pull-branches b/git/bin/git-pull-branches
index 2640f94..9e84041 100755
--- a/git/bin/git-pull-branches
+++ b/git/bin/git-pull-branches
@@ -22,11 +22,12 @@
set -e
CURRENT_BRANCH="$(git branch --show-current)"
-REMOTE_BRANCHES="$(git branch -r | awk '{ print $1 }')"
# pull current branch
git pull
+REMOTE_BRANCHES="$(git branch -r | awk '{ print $1 }')"
+
# pull remote branches
for REMOTE_BRANCH in ${REMOTE_BRANCHES}
do