-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bundle creation #17079
Fix bundle creation #17079
Conversation
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #17079 +/- ##
=======================================
Coverage ? 45.31%
=======================================
Files ? 774
Lines ? 86983
Branches ? 0
=======================================
Hits ? 39415
Misses ? 41191
Partials ? 6377
Continue to review full report at Codecov.
|
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
Instead of creating a branch in the real repo this should create a temporary repo with GIT_OBJECT_DIRECTORY set to the main repo and then you create your own branch as appropriate, then the whole temporary repo can be deleted at the end without having to worry about issues like what if a panic is called earlier. We must not go around creating branches in real users repos. They will appear on the UI - even for a short amount of time - but the current code risks the temporary branch not being deleted at the end if there is an error. |
Another alternative, maybe we just don't offer bundle downloads for a commit? (If there's no simple way to provide them, that is) |
@jolheiser the way suggested by @zeripath looks quite simple |
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
Why is it kind/breaking? |
@6543 added multiple by mistake |
Co-authored-by: Gwyneth Morgan <87623694+gwymor@users.noreply.github.com>
Co-authored-by: Gwyneth Morgan <gwymor@tilde.club>
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
Fix for added bundle download (#14538).
git bundle create
can only accept a reference: