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