Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Switch to target branch
  • Loading branch information
Javier Serrano Polo committed Feb 16, 2017
commit e561eb9b971ee198bc83f4bcfa3573da3ea6fecc
5 changes: 4 additions & 1 deletion cron/git_maintenance_tasks
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -e

BRANCH=master
BRANCH=maintenance-test
BRANCH=maintenance-test2

DIR="$(readlink -e "$(dirname $0)")"

Expand All @@ -15,7 +16,9 @@ cd ~/lmms-repo
if [ -e lmms ]
then
cd lmms
PULLRES=$(git pull)
git fetch
git checkout "$BRANCH"
PULLRES=$(git merge origin/"$BRANCH")
if [ "$PULLRES" = "Already up-to-date." -a -e maintenance-tasks-done ]
then
exit
Expand Down