Browse Source

Adjust script to remove branches which are deleted on GitHub

Co-Authored-By: Morris Jobke <hey@morrisjobke.de>
tags/v17.0.0beta1
Jan-Christoph Borchardt 5 years ago
parent
commit
bc61b15e2f
No account linked to committer's email address
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      build/update-apps.sh
  2. 1
    1
      build/update.sh

+ 1
- 1
build/update-apps.sh View File

@@ -11,4 +11,4 @@
# - removes branches merged into master
# - … could even do the build steps if they are consistent for the apps (like `make`)

find apps* -maxdepth 2 -name .git -exec sh -c 'cd {}/../ && printf "\n\033[1m${PWD##*/}\033[0m\n" && git checkout master && git pull --quiet && git --no-pager log -3 --pretty=format:"%h %Cblue%ar%x09%an %Creset%s" && printf "\n" && git branch --merged master | grep -v "master$" | xargs --no-run-if-empty git branch -d && git fetch --prune --quiet && cd ..' \;
find apps* -maxdepth 2 -name .git -exec sh -c 'cd {}/../ && printf "\n\033[1m${PWD##*/}\033[0m\n" && git checkout master && git pull --quiet -p && git --no-pager log -3 --pretty=format:"%h %Cblue%ar%x09%an %Creset%s" && printf "\n" && git branch --merged master | grep -v "master$" | xargs --no-run-if-empty git branch -d && git fetch --prune --quiet && cd ..' \;

+ 1
- 1
build/update.sh View File

@@ -6,7 +6,7 @@
# Update server
printf "\n\033[1m${PWD##*/}\033[0m\n"
git checkout master
git pull --quiet
git pull --quiet -p
git --no-pager log -3 --pretty=format:"%h %Cblue%ar%x09%an %Creset%s"
printf "\n"
git branch --merged master | grep -v "master$" | xargs --no-run-if-empty git branch -d

Loading…
Cancel
Save