diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-08-26 12:58:21 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-08-26 12:58:21 +0200 |
commit | c5d6400a1647fd1f4adb12a2655fb3ef44a91668 (patch) | |
tree | 4b68056b95660be68beb793d003882c5f02d7a65 /github_sync.sh | |
parent | 6cb2544494c18aea6a5203cb3c6f46fe67e42db4 (diff) | |
download | reposync-c5d6400a1647fd1f4adb12a2655fb3ef44a91668.tar.gz |
fix push on create, fix push tags
Diffstat (limited to 'github_sync.sh')
-rwxr-xr-x | github_sync.sh | 3 |
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 |