t4150: am refuses patches when paused
commitb4967ab49003e78bc4555de686a20bc82d56614f
authorPaul Tan <pyokagan@gmail.com>
Sun, 19 Jul 2015 15:49:10 +0000 (19 23:49 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Jul 2015 17:51:37 +0000 (20 10:51 -0700)
tree0df39d346fd44415fab2c6f890fd2f70fc15cdd0
parent528484c6450877ecf3eaa09ed7eb2c583c75f378
t4150: am refuses patches when paused

Since c95b138 (Fix git-am safety checks, 2006-09-15), when there is a
session in progress, git-am will check the command-line arguments and
standard input to ensure that the user does not pass it any patches.

Add a test for this.

Reviewed-by: Stefan Beller <sbeller@google.com>
Reviewed-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4150-am.sh