git clone --depth=1 [email protected]:git-up/GitUp.git
cd GitUp
gitup # Object not found - no match for id (........)
git fetch origin --unshallow
gitup # All dandy
Shallow clones are not supported by GitUp:
https://github.com/git-up/GitUp/wiki
Is there a way to detect a shallow clone and show an informative error indicating the lack of support?
I鈥檓 not aware of any off the top of my head.
cd complete_repo
git fetch origin --unshallow --dry-run
# fatal: --unshallow on a complete repository does not make sense
Looks like Git has a way of doing it.
@swisspol How about making the error message link to a wiki-page here on github? Then users and others can help each other with worarounds.
Doing this in general for all error messages could relieve you of a lot of work.
Most helpful comment
Looks like Git has a way of doing it.