X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/2792a83d582010863fb8fcd4a031895fcdb818dd..016ce7156881c1ea292ff115e5a0cc26e05b2ced:/packaging/patch-update diff --git a/packaging/patch-update b/packaging/patch-update index dba8e472..4ac01ebe 100755 --- a/packaging/patch-update +++ b/packaging/patch-update @@ -32,7 +32,7 @@ die "No '$patches_dir' directory was found.\n" unless -d $patches_dir; die "No '.git' directory present in the current dir.\n" unless -d '.git'; require 'packaging/git-status.pl'; -check_git_state($master_branch, !$skip_branch_check, 1); +my $starting_branch = check_git_state($master_branch, !$skip_branch_check, 1); my $master_commit; open PIPE, '-|', "git log -1 --no-color $master_branch" or die $!; @@ -124,7 +124,7 @@ if ($incl_generated_files) { } sleep 1 while $last_touch >= time; -system "git checkout $master_branch" and exit 1; +system "git checkout $starting_branch" and exit 1; exit;