Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After Repo sync, there are no files in the directory

I've setup a new Repo for Android source code, and after executing the repo sync, there are no files in the repo directory. Did I miss something?

I used:

repo init -u git://android.git.kernel.org/platform/manifest.git

repo initialized in /home/tarandeep/code/Android

repo sync

... It downloaded GBs of data (I can confirm via network monitor) and then nothing appeared in the Android directory.

like image 600
Taranfx Avatar asked Jan 21 '23 21:01

Taranfx


2 Answers

It's a git repo in a hidden directory, .git. "Hidden" just means it starts with a period.

When in doubt, you can use ls -a or ls -al (vertical) to see hidden directories.

However, you will generally interact with the repository using git commands, repo commands wrapping git, or a GUI equivalent.

like image 104
Matthew Flaschen Avatar answered Jan 23 '23 10:01

Matthew Flaschen


I experienced this. Somehow I had configured repo incorrectly and it was depositing the source into my home directory rather than my working directory. I blew away all the .repo* directories/files in my home directory, then re-ran repo init and repo sync in the working directory. All was well after that.

like image 38
boettger1 Avatar answered Jan 23 '23 11:01

boettger1