diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-04 13:07:24 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-04 13:07:24 -0700 |
commit | 906189aba2550c08e1961709a290b7fe9a10ce50 (patch) | |
tree | 8ae71511496be2a6d7d019d86d0dec538ec64f49 /.bashrc | |
parent | 6a2a6ae2b7a2b763930ba21a15f28ebf82334289 (diff) | |
download | dotfiles-906189aba2550c08e1961709a290b7fe9a10ce50.tar.gz |
push to salsa if additional salsa remote
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -151,6 +151,15 @@ debrel () { fi dgit push-source "$@" git push --follow-tags + + # if origin is not salsa, we might also want to push to salsa + # (.mrconfig.in should contain `git remote add -f salsa + # salsa:foo/bar` for this repo) + if git remote | grep -q salsa \ + && git branch --contains salsa/$branch \ + | grep -qE " $branch$"; then + git push --follow-tags salsa $branch:$branch + fi ) } |