summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-10-29 19:10:47 +0100
committerRobert Speicher <rspeicher@gmail.com>2016-10-31 14:56:20 +0000
commit5acb3230efce11148c55dce9a53cd2a85e7d120a (patch)
treeaf8f1eb02e52159f9a6d91ce7a67ecad3a003d72 /bin
parent23312b484f14c4843c782fd195a690e5e288af11 (diff)
downloadgitlab-ce-5acb3230efce11148c55dce9a53cd2a85e7d120a.tar.gz
Add specs for ChangelogOptionParser in bin/changelogrs-bin-changelog
Diffstat (limited to 'bin')
-rwxr-xr-xbin/changelog3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/changelog b/bin/changelog
index 2b08e3e4c2a..a0d1ad2d730 100755
--- a/bin/changelog
+++ b/bin/changelog
@@ -42,7 +42,7 @@ class ChangelogOptionParser
end
opts.on('-h', '--help', 'Print help message') do
- puts opts
+ $stdout.puts opts
exit
end
end
@@ -72,6 +72,7 @@ class ChangelogEntry
$stdout.puts "\e[32mcreate\e[0m #{file_path}"
$stdout.puts contents
+
unless options.dry_run
write
amend_commit if options.amend