Re: [PATCHv2] git-pull: Avoid merge-base on detached head

2012-10-26 Thread Jeff King
On Thu, Oct 25, 2012 at 02:50:37PM -0400, Phil Hord wrote: git pull --rebase does some clever tricks to find the base for $upstream , but it forgets that we may not have any branch at all. When this happens, git merge-base reports its usage help in the middle of an otherwise successful

Re: [PATCHv2] git-pull: Avoid merge-base on detached head

2012-10-25 Thread Jeff King
On Tue, Oct 23, 2012 at 04:39:56PM -0400, Phil Hord wrote: git pull --rebase does some clever tricks to find the base for $upstream , but it forgets that we may not have any branch at all. When this happens, git merge-base reports its usage help in the middle of an otherwise successful

Re: [PATCHv2] git-pull: Avoid merge-base on detached head

2012-10-25 Thread Phil Hord
Jeff King wrote: On Tue, Oct 23, 2012 at 04:39:56PM -0400, Phil Hord wrote: git pull --rebase does some clever tricks to find the base for $upstream , but it forgets that we may not have any branch at all. When this happens, git merge-base reports its usage help in the middle of an

[PATCHv2] git-pull: Avoid merge-base on detached head

2012-10-23 Thread Phil Hord
git pull --rebase does some clever tricks to find the base for $upstream , but it forgets that we may not have any branch at all. When this happens, git merge-base reports its usage help in the middle of an otherwise successful rebase operation, because git-merge is called with one too few

[PATCHv2] git-pull: Avoid merge-base on detached head

2012-10-23 Thread Phil Hord
Add Signed-off-by... -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html