Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update master before starting a new feature.

We were doing this already with `hotfix start`; why weren't we doing it
with `feature start`?
  • Loading branch information...
commit 6ea8be0f4f647f376e044e5104734668af3d578f 1 parent e42c56d
@xiongchiamiov xiongchiamiov authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  feature.rb
3  feature.rb
@@ -18,9 +18,12 @@
exit if !confirm("Create feature branch named: '#{feature}' ?")
+ Git::run_safe("git checkout #{Git::development_branch}")
+ Git::run_safe("git pull --rebase")
Git::run_safe("git branch \"#{feature}\" #{Git::development_branch}")
Git::run_safe("git checkout \"#{feature}\"")
Git::run_safe("git submodule --quiet update --init --recursive")
# Automatically setup remote tracking branch
Git::run_safe("git config branch.#{feature}.remote origin")
Git::run_safe("git config branch.#{feature}.merge refs/heads/#{feature}")
Please sign in to comment.
Something went wrong with that request. Please try again.