-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git: on export, skip failed refs instead of failing whole export
Since we now write a (partial) view object of the exported branches to disk (since 7904474), we can safely skip exporting some branches. We already skip conflicted branches. This commit makes us also skip branches that we fail to write to the backing Git repo, instead of failing the whole operation (after possibly updating some Git refs). I made the `export_refs()` function return the branches that failed. We should probably make that a struct later and have a separate field for branches that we skipped due to conflicts. Closes #493.
- Loading branch information
1 parent
e943e32
commit 73ade64
Showing
2 changed files
with
51 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters