diff options
Diffstat (limited to 'rfc.sh')
-rwxr-xr-x | rfc.sh | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -94,10 +94,16 @@ function main() bug=$(git show --format='%b' | grep -i '^BUG: ' | awk '{print $2}'); + if [ "$DRY_RUN" = 1 ]; then + drier='echo -e Please use the following command to send your commits to review:\n\n' + else + drier= + fi + if [ -z "$bug" ]; then - git push origin HEAD:refs/for/$branch/rfc; + $drier git push origin HEAD:refs/for/$branch/rfc; else - git push origin HEAD:refs/for/$branch/bug-$bug; + $drier git push origin HEAD:refs/for/$branch/bug-$bug; fi } |