From 43f9272a0a3430ec70041ee808b92a64bd8afbdb Mon Sep 17 00:00:00 2001 From: Phil Dibowitz Date: Thu, 18 Apr 2024 15:27:20 -0700 Subject: [PATCH] sj-feature: set tracked branch (#156) Make sure to set the tracked branch when creating features so that `sj up` works as expected. Signed-off-by: Phil Dibowitz --- lib/sugarjar/commands.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sugarjar/commands.rb b/lib/sugarjar/commands.rb index bdb6f19..df698c6 100644 --- a/lib/sugarjar/commands.rb +++ b/lib/sugarjar/commands.rb @@ -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),