I want to download only the latest commit of the lineage OS source code, and repo doesn't accept --depth=1. I've tried to edit the python code for repo but i didn't succeed
Asked
Active
Viewed 1,049 times
-1
-
oh, i meant depth=1 – PranshuTheGamer Sep 05 '21 at 08:16
-
@torek i corrected my mistake – PranshuTheGamer Sep 05 '21 at 11:10
-
2You've expressed your goal: clone with `--depth 1`. You haven't yet expressed your *question about Python programming*, if that's what you have here (you tagged this with [tag:python]). – torek Sep 05 '21 at 19:07
1 Answers
0
I think you mean the repo init
command doesn't accept a --depth
option, is that correct? According to its docs,
Repo complements Git by simplifying work
and it would seem that's one of the simplifications it makes. Their toolchain hides all the scary parts of Git that require effort and understanding rather than just cut-and-paste imitation.
If you want to upgrade the repo
command itself to expose more of the underlying Git options and are asking for help here, repo
itself is Git managed, say git format-patch
on the changes you've made and ask about them: post the changes, link to why and how you thought they'd work, show what happened instead.

jthill
- 55,082
- 5
- 77
- 137
-
no, what i mean is when you run git clone or git pull --depth=1 gets used to save data when downloading, but im asking how to add that functionality to repo – PranshuTheGamer Sep 06 '21 at 08:50