aboutsummaryrefslogtreecommitdiff
path: root/github_sync.sh
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-08-26 12:58:21 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-08-26 12:58:21 +0200
commitc5d6400a1647fd1f4adb12a2655fb3ef44a91668 (patch)
tree4b68056b95660be68beb793d003882c5f02d7a65 /github_sync.sh
parent6cb2544494c18aea6a5203cb3c6f46fe67e42db4 (diff)
downloadreposync-c5d6400a1647fd1f4adb12a2655fb3ef44a91668.tar.gz
fix push on create, fix push tags
Diffstat (limited to 'github_sync.sh')
-rwxr-xr-xgithub_sync.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/github_sync.sh b/github_sync.sh
index edd6a15..cf7cb28 100755
--- a/github_sync.sh
+++ b/github_sync.sh
@@ -121,11 +121,12 @@ for repo in "${TO_CREATE[@]}"; do
[ -z "${GH_REPOS[$repo]}" ] && echo No clone_URL? && continue
- git -C "$REPO_DIR/$repo" push "${GH_REPOS[$repo]}"
+ TO_PUSH+=($repo)
done
for repo in "${TO_PUSH[@]}"; do
git -C "$REPO_DIR/$repo" push --all "${GH_REPOS[$repo]}"
+ git -C "$REPO_DIR/$repo" push --tags "${GH_REPOS[$repo]}"
done
echo