On 01/30/2012 11:51 AM, Karthik K wrote:
> Tried doing the following and encountered an error.
>
> Anything that needs to be done, to get this correct ? Thanks !
>
> $ git clone git://github.com/apache/flume.git
> Cloning into flume...
> remote: Counting objects: 13133, done.
> remote: Compressing objects: 100% (4241/4241), done.
> remote: Total 13133 (delta 6692), reused 13014 (delta 6573)
> Receiving objects: 100% (13133/13133), 33.23 MiB | 424 KiB/s, done.
> Resolving deltas: 100% (6692/6692), done.
> ****warning: remote HEAD refers to nonexistent ref, unable to checkout.****
> *
> *
> --
>   Karthik.
> *
> *
>

You just need to go into that repository and checkout the branch you
wish to work on.

bruno@Marsupilami tmp]$ git clone git://github.com/apache/flume.git
Cloning into
'flume'...                                                                      
                                                                

remote: Counting objects: 13133, done.
remote: Compressing objects: 100% (4241/4241), done.
remote: Total 13133 (delta 6692), reused 13014 (delta 6573)
Receiving objects: 100% (13133/13133), 33.23 MiB | 1.35 MiB/s, done.
Resolving deltas: 100% (6692/6692), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.


[bruno@Marsupilami tmp]$ cd flume/

[bruno@Marsupilami flume]$ git branch -a
  remotes/origin/flume-728
  remotes/origin/flume-878
  remotes/origin/flume-897
  remotes/origin/ng-alpha-1
  remotes/origin/ng-alpha-2
  remotes/origin/trunk
[bruno@Marsupilami flume]$ git checkout trunk
Branch trunk set up to track remote branch trunk from origin.
Switched to a new branch 'trunk'

[bruno@Marsupilami flume]$ ls
bin             contrib   findbugsExclude.xml  flume-distribution   
flume-microbenchmarks  ivysettings.xml  plugins  README       
svn-placeholder
CHANGELOG.html  DEVNOTES  flume-config-web     flume-docs           
flume-node-web         LICENSE          pmd.xml  RELEASENOTES  test-endtoend
conf            docs      flume-core           flume-log4j-appender 
flume-windows-dist     NOTICE           pom.xml  src

Reply via email to