Repository navigation
adopt-project.py: check and execute run with GIT_NO_LAZY_FETCH=1 and refuse a partial-clone source that lacks an object its branches, tags or HEAD reach as source-partial-clone, so neither fetches into the source any more (#1145)
#1180
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
fe74d01
checkpoint: adopt-project.py: `check` asks the split's own `git clone…
bd63e67
Merge remote-tracking branch 'origin/main' into fix/1083-check-asks-t…
bdcf995
tests/test_adopt_reencoded_files.py: the docstring of `test_a_link_th…
b11b619
Merge remote-tracking branch 'origin/main' into fix/1083-check-asks-t…
9b99893
adopt-project.py: check's clone of the source takes the -c settings a…
d0bc40c
Merge remote-tracking branch 'origin/main' into fix/1083-check-asks-t…
cea2553
adopt-project.py: `_resolved`'s and `_answers`' throwaways take `core…
0b32695
tests/test_adopt_check_throwaway_repos.py: the row with `--work-dir` …
bba168b
adopt-project.py: `_split_clone_asked`'s docstring names the global o…
3403058
adopt-project.py: `check` and `execute` run with `GIT_NO_LAZY_FETCH=1…
179b58e
adopt-project.py and docs/cli.md: `check --source` and `execute --sou…
3b11751
tests/test_adopt_partial_clone_source.py: `check` and `execute` refus…
2c8082a
tests/test_adopt_partial_clone_source.py: a partial clone whose walk …
70f3248
tests/test_adopt_partial_clone_source.py: a tag alone that reaches a …
6cd96b8
adopt-project.py and tests/test_adopt_partial_clone_source.py: the `s…
41230f6
adopt-project.py, docs/cli.md and tests/test_adopt_partial_clone_sour…
b316f41
tests/test_adopt_partial_clone_source.py: the refusal of a HEAD whose…
195d993
tests/test_adopt_check_throwaway_repos.py: the rows that give check a…
a4ec51d
adopt-project.py and tests/test_adopt_partial_clone_source.py: the `s…
e0a98f1
Merge main (ef619c74, #1158) into #1119; keep both sides' rows in tes…
9b85644
Merge branch 'main' into fix/1083-check-asks-the-split-clone
brettheap c3f8a2b
Merge #1119's final head 9b856443 into fix/1145-partial-clone-source-…
ef73f75
Merge #1119's squash b7edd881 into fix/1145-partial-clone-source-no-f…
b18d2e8
Merge origin/main 50ce8ab1 into fix/1145-partial-clone-source-no-fetch
a0e8cde
adopt-project.py and tests/test_adopt_partial_clone_source.py: the te…
58a2175
Merge branch 'main' into fix/1145-partial-clone-source-no-fetch
brettheap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium · Config lookup failure skips guard
When A
git configquery cannot run or errors, but a later Git invocation in the command succeeds,_config_listedtreats a failedgit configinvocation as an empty config result, so_promisor_remotesreturns no remotes and the guard exits. If later Git commands succeed, they can read the partial clone and lazily fetch into its object store without the promised refusal.Distinguish the normal no-match exit from configuration-query failures and refuse when promisor status cannot be determined.
Also at
adopt-project.py:13162-13163.Prompt for AI agents