We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1730225 commit c3d6552Copy full SHA for c3d6552
cron_entry.sh
@@ -0,0 +1,8 @@
1
+#!/usr/bin/env bash
2
+
3
+cd /home/robert/production/git-repo-sync
4
+su robert
5
+./sync_repo.sh 2>&1 | tee cron.log
6
7
8
sync_repo.sh
@@ -18,13 +18,16 @@ fi
18
19
cd .repo
20
21
-echo "Fetching from SOURCE_REPO ($SOURCE_REPO)"
22
-git fetch
+# echo "Fetching from SOURCE_REPO ($SOURCE_REPO)"
+# git fetch origin master
23
24
for RELEASE_BRANCH in `git branch -a | grep "release-" | sort -V -r | head -n 3` ; do
25
TARGET_BRANCHES+=" $RELEASE_BRANCH"
26
done
27
28
+echo "Fetching branches '$TARGET_BRANCHES' from SOURCE_REPO ($SOURCE_REPO)"
29
+git fetch origin $TARGET_BRANCHES
30
31
echo "Pushing branches '$TARGET_BRANCHES' to TARGET_REPO ($TARGET_REPO)"
32
33
# generating refspec
0 commit comments