Git unshallow-on-complete-repository The --unshallow flag was passed to a fetch in a repository that is not shallow.
Reviewed for reference consistency: August 11, 2026
Code is Safe
SECUREGit has paused the operation to protect your code. No data has been lost or corrupted.
What To Know
Where Did It Fail?
Commands That Trigger This
Technical Background
Shallow repositories carry a marker of their truncation; --unshallow reads that marker to decide how much history to request. With no marker, the request has no meaning — hence the refusal, which fires before any connection is made.
The error is harmless by construction: nothing about the repository changed, and scripts only need a conditional around the flag, keyed on shallowness, to become idempotent.
Underlying Causes
Frequently Asked Questions
`git rev-parse --is-shallow-repository` reports the state directly, which makes the unshallow step conditional and safe to re-run.
Yes — the check is local and happens before networking, so no fetch or negotiation takes place.