From 10bf159ac4a0891c8eabf5763bb8808a14b00a38 Mon Sep 17 00:00:00 2001 From: Alberto Leal Date: Wed, 13 Oct 2021 00:04:59 -0400 Subject: [PATCH] Fix undefined local variable chain_name in branch.rb --- lib/git_chain/commands/branch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git_chain/commands/branch.rb b/lib/git_chain/commands/branch.rb index e10cb7d..f36c22e 100644 --- a/lib/git_chain/commands/branch.rb +++ b/lib/git_chain/commands/branch.rb @@ -74,7 +74,7 @@ def run(options) branch_names = chain.branch_names if branch_names.empty? - raise(Abort, "Unable to insert, #{chain_name} does not exist yet") if options[:mode] == :insert + raise(Abort, "Unable to insert, #{options[:chain_name]} does not exist yet") if options[:mode] == :insert branch_names << start_point << branch_name else is_last = branch_names.last == start_point