summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrfc.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/rfc.sh b/rfc.sh
index 8dad0afa68b..2a5e779c12c 100755
--- a/rfc.sh
+++ b/rfc.sh
@@ -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
}