repo syncs to my home folder 'not' WORKING_DIRECTORY

1,605 views
Skip to first unread message

John Wakefield-Stevenson

unread,
Apr 21, 2011, 7:39:13 AM4/21/11
to android-...@googlegroups.com
repo syncs to my home folder 'not' WORKING_DIRECTORY


[sophie@sophie-laptop:~$ mkdir ~/bin
sophie@sophie-laptop:~$ PATH=~/bin:$PATH
sophie@sophie-laptop:~$ curl http://android.git.kernel.org/repo > ~/bin/repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17451  100 17451    0     0   8078      0  0:00:02  0:00:02 --:--:--  9892
sophie@sophie-laptop:~$ chmod a+x ~/bin/repo
sophie@sophie-laptop:~$ mkdir WORKING_DIRECTORY
sophie@sophie-laptop:~$ cd WORKING_DIRECTORY
sophie@sophie-laptop:~/WORKING_DIRECTORY$ repo init -u git://android.git.kernel.org/platform/manifest.git

Your Name  [sophie]:
Your Email [johnw...@gmail.com]:

Your identity is: sophie <johnw...@gmail.com>
is this correct [y/n]? y

repo initialized in /home/sophie
sophie@sophie-laptop:~/WORKING_DIRECTORY$ ]



How do I correct this?




Thanks, John



Message has been deleted

Jean-Baptiste Queru

unread,
Apr 21, 2011, 9:24:29 AM4/21/11
to android-...@googlegroups.com
My guess is that you had already run repo init in your home directory,
which created a .repo there, such that repo now believes that you're
trying to modify that client instead of creating a new one, since
you're in that existing one.

I recommend that you check for an existing .repo in your home
directory and, if you don't need that one any more, that you delete
it.

JBQ

> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Doug Reiland

unread,
Apr 21, 2011, 11:27:30 AM4/21/11
to android-...@googlegroups.com
OR, keep your work-directories in separate subdirectories.

example,
mkdir ~/work1; cd ~/work1; repo init ...
mkdir ~/work2;cd ~/work2; repo init ...

repo has logic the looks for previous repo in current directory, if not found, look in parent directory, ...
In the above example, in ~/work2, it won't spot the environment in ~/work1
Reply all
Reply to author
Forward
0 new messages