From e5e6d3c410e4ca2d9b70def299c21a90245b41b8 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 19 Mar 2011 16:34:37 -0700 Subject: [PATCH 1/1] Get the branch set right before listing names and handling --delete. --- packaging/branch-from-patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/branch-from-patch b/packaging/branch-from-patch index e555f00b..469f3d60 100755 --- a/packaging/branch-from-patch +++ b/packaging/branch-from-patch @@ -13,6 +13,9 @@ use Getopt::Long; ); &usage if $help_opt; +require 'packaging/git-status.pl'; +check_git_state($master_branch, !$skip_branch_check, 1); + my %local_branch; open PIPE, '-|', 'git branch -l' or die "Unable to fork: $!\n"; while () { @@ -30,9 +33,6 @@ if ($delete_local_branches) { %local_branch = ( ); } -require 'packaging/git-status.pl'; -check_git_state($master_branch, !$skip_branch_check, 1); - my @patch_list; foreach (@ARGV) { if (!-f $_) { -- 2.34.1