push: add a config option push.gpgSign for default signed pushes
[gitweb.git] / git-add--interactive.perl
index f35b3e61527d3e1d6ec2b40b085e456e96b1c294..77876d433a1ba2384a690155b51dac8118fa27b4 100755 (executable)
@@ -1361,6 +1361,7 @@ sub patch_update_file {
                  $patch_mode_flavour{TARGET},
                  " [y,n,q,a,d,/$other,?]? ";
                my $line = prompt_single_character;
+               last unless defined $line;
                if ($line) {
                        if ($line =~ /^y/i) {
                                $hunk[$ix]{USE} = 1;