Re: [PATCH] contrib/subtree bugfix: Crash if FETCH_HEAD is tag

2014-05-07 Thread James Denholm
After a closer look, it seems the initial patch wasn't correctly sent to the list. Please disregard, I'm re-sending the patch entirely. Regards, James Denholm. On 8 May 2014 07:53, James Denholm wrote: > On 4 May 2014 16:33:32 GMT+10:00, James Denholm wrote: >>cmd_add_commit() is passed FETCH_H

Re: [PATCH] contrib/subtree bugfix: Crash if FETCH_HEAD is tag

2014-05-07 Thread James Denholm
On 4 May 2014 16:33:32 GMT+10:00, James Denholm wrote: >cmd_add_commit() is passed FETCH_HEAD by cmd_add_repository, which is >then rev-parsed into an object ID. However, if the user is fetching a >tag rather than a branch HEAD, such as by executing: > >$ git subtree add -P oldGit https://github.c