Gitup: "Object not found" when using a shallow cloned repository

Created on 15 Oct 2017  路  5Comments  路  Source: git-up/GitUp

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
question

Most helpful comment

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.

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings