lib/gitx/cli/start_command.rb in gitx-2.21.2.ci.134.1 vs lib/gitx/cli/start_command.rb in gitx-2.21.2
- old
+ new
@@ -14,13 +14,13 @@
until valid_new_branch_name?(branch_name)
branch_name = ask("What would you like to name your branch? (ex: #{EXAMPLE_BRANCH_NAMES.sample})")
end
checkout_branch config.base_branch
- run_git_cmd 'pull'
+ run_cmd 'git pull'
repo.create_branch branch_name, config.base_branch
checkout_branch branch_name
- run_git_cmd('commit', '--allow-empty', '--message', "Starting work on #{branch_name} (Issue ##{options[:issue]})") if options[:issue]
+ run_cmd(%Q(git commit -m "Starting work on #{branch_name} (Issue ##{options[:issue]})" --allow-empty)) if options[:issue]
end
private
def valid_new_branch_name?(branch)