lib/dev_flow/commands/info.rb in dev_flow-0.2.0 vs lib/dev_flow/commands/info.rb in dev_flow-0.2.1

- old
+ new

@@ -28,11 +28,15 @@ print @waiting.keys.join(", ") + ":" ans = STDIN.gets.chomp! if ans == 0.to_s switch_to! 'develop' + `git pull #{@config["git_remote"]} develop` if @config["git_remote"] elsif @waiting[ans.to_i] switch_to! @waiting[ans.to_i].branch_name + + # update your work directory + `git pull #{@config["git_remote"]} #{@waiting[ans.to_i].branch_name}` if @config["git_remote"] # if the task not started yet, update progress upload_progress!(@waiting[ans.to_i], 10) unless @waiting[ans.to_i].progress > 0 else error "Invalid input #{ans}. Can not continue." if ans and ans.size > 0