vedderb / bldc

The VESC motor control firmware
2.22k stars 1.37k forks source link

git clone not working ? #406

Open RoboDurden opened 2 years ago

RoboDurden commented 2 years ago

Sorry for this stupid issue. I am porting my online compiler from https://pionierland.de/hoverhack/ to https://robodurden.de/hoverhack/ and for some reason the preinstalled git on my new Ubuntu 20.04 LTS is fetching some old source:

...# git -C source/ clone --branch master --recurse-submodules https://github.com/vedderb/bldc.git vedderb_bldc
Cloning into 'vedderb_bldc'...
remote: Enumerating objects: 15024, done.
remote: Counting objects: 100% (818/818), done.
remote: Compressing objects: 100% (402/402), done.
remote: Total 15024 (delta 516), reused 619 (delta 370), pack-reused 14206
Receiving objects: 100% (15024/15024), 73.84 MiB | 23.98 MiB/s, done.
Resolving deltas: 100% (10570/10570), done.

I end up with a confgenerator.c file of 953 lines and 56.186 kB whereas your master/confgenerator.c has 1103 lines and 65.3 kB. Maybe someone can easily tell me what my error is :-)

surfdado commented 2 years ago

The repository has branches. "git branch -a" lists all branches and "git checkout branchname" switches to a different branch - just checkout the branch you're interested in