Reputation: 137584
I'd like to download some Chromium source code. In particular, the folder described at https://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/email_this_page/
How can I do that?
I can't see the clone URL. I'm not even sure whether it's a git repo.
Upvotes: 14
Views: 18967
Reputation: 9620
The chromium page on googlesource.com has exact instructions for the same.
Page: https://chromium.googlesource.com/chromium/src
git clone https://chromium.googlesource.com/chromium/src
Upvotes: 1
Reputation: 126
As of today, you can get it from GitHub:
The official GitHub mirror of the Chromium source: https://github.com/chromium/chromium
Upvotes: 3
Reputation: 120516
Cloning with git clone
is a tad slow. See bolded text below.
https://chromium.googlesource.com/chromium/src/+/lkcr/docs/linux_build_instructions.md#get-the-code
Create a chromium directory for the checkout and change to it (you can call this whatever you like and put it wherever you like, as long as the full path has no spaces):
$ mkdir ~/chromium && cd ~/chromium
Run the fetch tool from depot_tools to check out the code and its dependencies.
$ fetch --nohooks chromium
If you don't want the full repo history, you can save a lot of time by adding the
--no-history
flag to fetch.Expect the command to take 30 minutes on even a fast connection, and many hours on slower ones.
Upvotes: 2
Reputation: 137584
Per https://chromium.googlesource.com/chromium/src
git clone https://chromium.googlesource.com/chromium/src
Easy peasy lemon squeezy
Upvotes: 18
Reputation: 6502
Remove the /viewvc
from url and clone (checkout) with svn checkout <url-without-viewvc>
Not this:
svn checkout http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/
But this:
svn checkout http://src.chromium.org/chrome/trunk/src/chrome/common/extensions/docs/
Upvotes: 1