You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Yu Li <ca...@gmail.com> on 2016/04/12 15:20:47 UTC
Observed origin/master and origin/Master branches in git
Hi All,
As titled, there seems to be a new origin/Master branch created recently,
and when trying to pull the changes, my git client complains:
==========================
error: Ref refs/remotes/origin/master is at
90d3b03b674e6718ffcd3eaef00845be5e77656f but expected
c2f67a053ebe687773e5e35aa7c060de964dbb68
error: Cannot lock the ref 'refs/remotes/origin/master'.
>From git://git.apache.org/hbase
! c2f67a0..ff9c92e master -> origin/master (unable to update local
ref)
==========================
This link
<http://stackoverflow.com/questions/11796580/git-pull-error-error-remote-ref-is-at-but-expected>
explains the root cause of the problem, simply copy-paste as follows:
==========================
If you are running git under a file system that is not case sensitive
(Windows or OS X) this will occur if there are two branches with the same
name but different capitalisation, e.g. user_model_changes and
User_model_changes as both of the remote branches will match the same
tracking ref.
==========================
So, my question is that what the new origin/Master branch is created for
and could we remove it? Or plz kindly let me know if anyway to make git
pull work if we have to keep the branch. Many thanks.
Best Regards,
Yu
Re: Observed origin/master and origin/Master branches in git
Posted by Yu Li <ca...@gmail.com>.
Thanks for the quick action stack! After running "git remote prune origin",
now the problem disappears.
Best Regards,
Yu
On 12 April 2016 at 23:15, Stack <st...@duboce.net> wrote:
> It was there for a while Yu Li. I ran into your problem and removed it
> after verifying it had nothing not in actual master (I am pretty sure I
> made it by mistake).
>
> St.Ack
>
> On Tue, Apr 12, 2016 at 6:20 AM, Yu Li <ca...@gmail.com> wrote:
>
> > Hi All,
> >
> > As titled, there seems to be a new origin/Master branch created recently,
> > and when trying to pull the changes, my git client complains:
> > ==========================
> > error: Ref refs/remotes/origin/master is at
> > 90d3b03b674e6718ffcd3eaef00845be5e77656f but expected
> > c2f67a053ebe687773e5e35aa7c060de964dbb68
> > error: Cannot lock the ref 'refs/remotes/origin/master'.
> > From git://git.apache.org/hbase
> > ! c2f67a0..ff9c92e master -> origin/master (unable to update local
> > ref)
> > ==========================
> >
> > This link
> > <
> >
> http://stackoverflow.com/questions/11796580/git-pull-error-error-remote-ref-is-at-but-expected
> > >
> > explains the root cause of the problem, simply copy-paste as follows:
> > ==========================
> > If you are running git under a file system that is not case sensitive
> > (Windows or OS X) this will occur if there are two branches with the same
> > name but different capitalisation, e.g. user_model_changes and
> > User_model_changes as both of the remote branches will match the same
> > tracking ref.
> > ==========================
> >
> > So, my question is that what the new origin/Master branch is created for
> > and could we remove it? Or plz kindly let me know if anyway to make git
> > pull work if we have to keep the branch. Many thanks.
> >
> > Best Regards,
> > Yu
> >
>
Re: Observed origin/master and origin/Master branches in git
Posted by Stack <st...@duboce.net>.
It was there for a while Yu Li. I ran into your problem and removed it
after verifying it had nothing not in actual master (I am pretty sure I
made it by mistake).
St.Ack
On Tue, Apr 12, 2016 at 6:20 AM, Yu Li <ca...@gmail.com> wrote:
> Hi All,
>
> As titled, there seems to be a new origin/Master branch created recently,
> and when trying to pull the changes, my git client complains:
> ==========================
> error: Ref refs/remotes/origin/master is at
> 90d3b03b674e6718ffcd3eaef00845be5e77656f but expected
> c2f67a053ebe687773e5e35aa7c060de964dbb68
> error: Cannot lock the ref 'refs/remotes/origin/master'.
> From git://git.apache.org/hbase
> ! c2f67a0..ff9c92e master -> origin/master (unable to update local
> ref)
> ==========================
>
> This link
> <
> http://stackoverflow.com/questions/11796580/git-pull-error-error-remote-ref-is-at-but-expected
> >
> explains the root cause of the problem, simply copy-paste as follows:
> ==========================
> If you are running git under a file system that is not case sensitive
> (Windows or OS X) this will occur if there are two branches with the same
> name but different capitalisation, e.g. user_model_changes and
> User_model_changes as both of the remote branches will match the same
> tracking ref.
> ==========================
>
> So, my question is that what the new origin/Master branch is created for
> and could we remove it? Or plz kindly let me know if anyway to make git
> pull work if we have to keep the branch. Many thanks.
>
> Best Regards,
> Yu
>
Re: Observed origin/master and origin/Master branches in git
Posted by Yu Li <ca...@gmail.com>.
I checked my local repository, and find that when: remote.origin.url=
https://git-wip-us.apache.org/repos/asf/hbase.git
then the output of "git branch -r | grep -i master" would be:
========================
origin/0.90_master_rewrite
origin/HEAD -> origin/master
origin/master
========================
and when: remote.origin.url=git://git.apache.org/hbase.git
then the output of "git branch -r | grep -i master" would be:
========================
origin/0.90_master_rewrite
origin/HEAD -> origin/master
origin/Master
========================
The problem happens when remote.origin.url=git://git.apache.org/hbase.git
Best Regards,
Yu
On 12 April 2016 at 22:46, Sean Busbey <bu...@cloudera.com> wrote:
> I similarly do not see it listed in our set of head refs:
>
> https://git1-us-west.apache.org/repos/asf?p=hbase.git;a=heads
>
> On Tue, Apr 12, 2016 at 9:19 AM, Ted Yu <yu...@gmail.com> wrote:
> > $ git clone -b Master https://github.com/apache/hbase.git ma
> > ...
> > warning: Remote branch Master not found in upstream origin, using HEAD
> > instead
> >
> > Where did you see the Master branch ?
> >
> > On Tue, Apr 12, 2016 at 6:20 AM, Yu Li <ca...@gmail.com> wrote:
> >
> >> Hi All,
> >>
> >> As titled, there seems to be a new origin/Master branch created
> recently,
> >> and when trying to pull the changes, my git client complains:
> >> ==========================
> >> error: Ref refs/remotes/origin/master is at
> >> 90d3b03b674e6718ffcd3eaef00845be5e77656f but expected
> >> c2f67a053ebe687773e5e35aa7c060de964dbb68
> >> error: Cannot lock the ref 'refs/remotes/origin/master'.
> >> From git://git.apache.org/hbase
> >> ! c2f67a0..ff9c92e master -> origin/master (unable to update
> local
> >> ref)
> >> ==========================
> >>
> >> This link
> >> <
> >>
> http://stackoverflow.com/questions/11796580/git-pull-error-error-remote-ref-is-at-but-expected
> >> >
> >> explains the root cause of the problem, simply copy-paste as follows:
> >> ==========================
> >> If you are running git under a file system that is not case sensitive
> >> (Windows or OS X) this will occur if there are two branches with the
> same
> >> name but different capitalisation, e.g. user_model_changes and
> >> User_model_changes as both of the remote branches will match the same
> >> tracking ref.
> >> ==========================
> >>
> >> So, my question is that what the new origin/Master branch is created for
> >> and could we remove it? Or plz kindly let me know if anyway to make git
> >> pull work if we have to keep the branch. Many thanks.
> >>
> >> Best Regards,
> >> Yu
> >>
>
>
>
> --
> busbey
>
Re: Observed origin/master and origin/Master branches in git
Posted by Sean Busbey <bu...@cloudera.com>.
I similarly do not see it listed in our set of head refs:
https://git1-us-west.apache.org/repos/asf?p=hbase.git;a=heads
On Tue, Apr 12, 2016 at 9:19 AM, Ted Yu <yu...@gmail.com> wrote:
> $ git clone -b Master https://github.com/apache/hbase.git ma
> ...
> warning: Remote branch Master not found in upstream origin, using HEAD
> instead
>
> Where did you see the Master branch ?
>
> On Tue, Apr 12, 2016 at 6:20 AM, Yu Li <ca...@gmail.com> wrote:
>
>> Hi All,
>>
>> As titled, there seems to be a new origin/Master branch created recently,
>> and when trying to pull the changes, my git client complains:
>> ==========================
>> error: Ref refs/remotes/origin/master is at
>> 90d3b03b674e6718ffcd3eaef00845be5e77656f but expected
>> c2f67a053ebe687773e5e35aa7c060de964dbb68
>> error: Cannot lock the ref 'refs/remotes/origin/master'.
>> From git://git.apache.org/hbase
>> ! c2f67a0..ff9c92e master -> origin/master (unable to update local
>> ref)
>> ==========================
>>
>> This link
>> <
>> http://stackoverflow.com/questions/11796580/git-pull-error-error-remote-ref-is-at-but-expected
>> >
>> explains the root cause of the problem, simply copy-paste as follows:
>> ==========================
>> If you are running git under a file system that is not case sensitive
>> (Windows or OS X) this will occur if there are two branches with the same
>> name but different capitalisation, e.g. user_model_changes and
>> User_model_changes as both of the remote branches will match the same
>> tracking ref.
>> ==========================
>>
>> So, my question is that what the new origin/Master branch is created for
>> and could we remove it? Or plz kindly let me know if anyway to make git
>> pull work if we have to keep the branch. Many thanks.
>>
>> Best Regards,
>> Yu
>>
--
busbey
Re: Observed origin/master and origin/Master branches in git
Posted by Ted Yu <yu...@gmail.com>.
$ git clone -b Master https://github.com/apache/hbase.git ma
...
warning: Remote branch Master not found in upstream origin, using HEAD
instead
Where did you see the Master branch ?
On Tue, Apr 12, 2016 at 6:20 AM, Yu Li <ca...@gmail.com> wrote:
> Hi All,
>
> As titled, there seems to be a new origin/Master branch created recently,
> and when trying to pull the changes, my git client complains:
> ==========================
> error: Ref refs/remotes/origin/master is at
> 90d3b03b674e6718ffcd3eaef00845be5e77656f but expected
> c2f67a053ebe687773e5e35aa7c060de964dbb68
> error: Cannot lock the ref 'refs/remotes/origin/master'.
> From git://git.apache.org/hbase
> ! c2f67a0..ff9c92e master -> origin/master (unable to update local
> ref)
> ==========================
>
> This link
> <
> http://stackoverflow.com/questions/11796580/git-pull-error-error-remote-ref-is-at-but-expected
> >
> explains the root cause of the problem, simply copy-paste as follows:
> ==========================
> If you are running git under a file system that is not case sensitive
> (Windows or OS X) this will occur if there are two branches with the same
> name but different capitalisation, e.g. user_model_changes and
> User_model_changes as both of the remote branches will match the same
> tracking ref.
> ==========================
>
> So, my question is that what the new origin/Master branch is created for
> and could we remove it? Or plz kindly let me know if anyway to make git
> pull work if we have to keep the branch. Many thanks.
>
> Best Regards,
> Yu
>