contrib/subtree: better error handling for 'subtree add'
commit10a49587fabde88c0afbc80a99d97fae91811f5f
authorDavid A. Greene <greened@obbligato.org>
Tue, 5 Feb 2013 04:06:03 +0000 (4 22:06 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Feb 2013 23:22:36 +0000 (5 15:22 -0800)
treea5cfeae24a94e54bceebeed804ca26ce90a14035
parenta5b8e28e4eb5762c9da68b56efdf45d6c885bd56
contrib/subtree: better error handling for 'subtree add'

Check refspecs for validity before passing them on to other commands.
This lets us generate more helpful error messages.

Signed-off-by: David A. Greene <greened@obbligato.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/git-subtree.sh