TheRacetrack / racetrack

An opinionated framework for deploying, managing, and serving application workloads
https://theracetrack.github.io/racetrack/
Apache License 2.0
28 stars 5 forks source link

Fetch single branch by image builder #446

Closed iszulcdeepsense closed 2 months ago

iszulcdeepsense commented 2 months ago

Currently, when building a Job image, image-builder calls the following commands:

git clone {remote_url} {workspace}
git checkout {branch_or_sha}

Unfortunately, in case of huge repositories, it may take a lot of time. Instead, racetrack should fetch only one branch or even one commit (without the history) with the current copy of Job's source code.

https://stackoverflow.com/a/43136160/6772197 https://stackoverflow.com/a/14930421/6772197