@@ -54,7 +54,7 @@ function M.get_recent_local_branches()
5454end
5555
5656function M .checkout (name , args )
57- git .cli .checkout .branch (name ).arg_list (args or {}).call ()
57+ git .cli .checkout .branch (name ).arg_list (args or {}).call { async = false }
5858
5959 if config .values .fetch_after_checkout then
6060 local pushRemote = M .pushRemote_ref (name )
@@ -78,7 +78,7 @@ function M.checkout(name, args)
7878end
7979
8080function M .track (name , args )
81- git .cli .checkout .track (name ).arg_list (args or {}).call ()
81+ git .cli .checkout .track (name ).arg_list (args or {}).call { async = false }
8282end
8383
8484function M .get_local_branches (include_current )
139139--- @param name string
140140--- @param base_branch ? string
141141function M .create (name , base_branch )
142- git .cli .branch .args (name , base_branch ).call ()
142+ git .cli .branch .args (name , base_branch ).call { async = false }
143143end
144144
145145function M .delete (name )
@@ -149,10 +149,10 @@ function M.delete(name)
149149 if M .is_unmerged (name ) then
150150 local message = (" '%s' contains unmerged commits! Are you sure you want to delete it?" ):format (name )
151151 if input .get_permission (message ) then
152- result = git .cli .branch .delete .force .name (name ).call ()
152+ result = git .cli .branch .delete .force .name (name ).call { async = false }
153153 end
154154 else
155- result = git .cli .branch .delete .name (name ).call ()
155+ result = git .cli .branch .delete .name (name ).call { async = false }
156156 end
157157
158158 return result and result .code == 0 or false
0 commit comments