All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: matti.j.aaltonen@nokia.com
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: git over http from linuxtv
Date: Wed, 03 Mar 2010 11:55:46 -0300	[thread overview]
Message-ID: <4B8E7872.3000602@redhat.com> (raw)
In-Reply-To: <1267614726.27183.55.camel@masi.mnp.nokia.com>

m7aalton wrote:
> Hello.
> 
> On Tue, 2010-03-02 at 20:08 +0100, ext Mauro Carvalho Chehab wrote:
>> m7aalton wrote:
>>> Hi.
>>>
>>> Is it possible to access the linuxtv.org git repositories using http?
>>> I tried to do this:
>>>
>>> git remote add linuxtv git://linuxtv.org/v4l-dvb.git
>> You should be able to use both URL's:
>>
>> URL	http://git.linuxtv.org/v4l-dvb.git
>> 	git://linuxtv.org/v4l-dvb.git
>>
>> There were a miss-configuration for the http URL. I just fixed it.
> 
> 
> Now it works better but I still couldn't clone it properly. The update
> from linuxtv didn't seem to do anything....
> 
> Here's what happened:
> 
> $ git clone
> http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> v4l-dvb
> 
> $ cd v4l-dvb
> 
> $ git remote add linuxtv http://git.linuxtv.org/v4l-dvb.git
> 
> $ git remote update
> Updating origin
>>From http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
>    13dda80..3a5b27b  master     -> origin/master
> Updating linuxtv
> 
> $ git branch -a
> * master
>   origin/HEAD
>   origin/master
> 
> $ git checkout -b media-master linuxtv/master
> fatal: git checkout: updating paths is incompatible with switching
> branches.
> Did you intend to checkout 'linuxtv/master' which can not be resolved as
> commit?

This happens when you try to use a gitweb URL instead of the proper one. At the above,
you've used the wrong URL. The correct one is:
	 http://linuxtv.org/git/v4l-dvb.git

You don't need to re-do the entire procedure. Just edit .git/config and put the
correct URL there for the linuxtv remote.

-- 

Cheers,
Mauro

  reply	other threads:[~2010-03-03 14:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4B82F7ED.6020502@redhat.com>
2010-03-02 17:23 ` git over http from linuxtv m7aalton
2010-03-02 19:08   ` Mauro Carvalho Chehab
2010-03-03 11:12     ` m7aalton
2010-03-03 14:55       ` Mauro Carvalho Chehab [this message]
2010-03-04 10:08         ` m7aalton
2010-03-04 12:01           ` Mauro Carvalho Chehab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B8E7872.3000602@redhat.com \
    --to=mchehab@redhat.com \
    --cc=linux-media@vger.kernel.org \
    --cc=matti.j.aaltonen@nokia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.