Re: [BUG/PATCH] contrib/subtree: allow addition of remote branch with name not locally present

2013-02-28 Thread Paul Campbell
On Thu, Feb 28, 2013 at 12:20 AM, Junio C Hamano gits...@pobox.com wrote: Paul Campbell pcampb...@kemitix.net writes: cmd_add() attempts to check for the validity of refspec for the repository it is about to add as a subtree. It tries to do so before contacting the repository. If the refspec

[BUG/PATCH] contrib/subtree: allow addition of remote branch with name not locally present

2013-02-27 Thread Paul Campbell
cmd_add() attempts to check for the validity of refspec for the repository it is about to add as a subtree. It tries to do so before contacting the repository. If the refspec happens to exist locally (say 'master') then the test passes and the repo is fetched. If the refspec doesn't exist locally

Re: [BUG/PATCH] contrib/subtree: allow addition of remote branch with name not locally present

2013-02-27 Thread Junio C Hamano
Paul Campbell pcampb...@kemitix.net writes: cmd_add() attempts to check for the validity of refspec for the repository it is about to add as a subtree. It tries to do so before contacting the repository. If the refspec happens to exist locally (say 'master') then the test passes and the repo