Skip to content

Commit

Permalink
sj-feature: set tracked branch (#156)
Browse files Browse the repository at this point in the history
Make sure to set the tracked branch when creating features
so that `sj up` works as expected.

Signed-off-by: Phil Dibowitz <phil@ipom.com>
  • Loading branch information
jaymzh authored Apr 18, 2024
1 parent fce3140 commit 43f9272
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sugarjar/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def feature(name, base = nil)
git('fetch', base_pieces[0]) if base_pieces.length > 1
end
git('checkout', '-b', name, base)
git('branch', '-u', base)
SugarJar::Log.info(
"Created feature branch #{color(name, :green)} based on " +
color(base, :green),
Expand Down

0 comments on commit 43f9272

Please sign in to comment.