-
Notifications
You must be signed in to change notification settings - Fork 0
Cloning an empty repository fails. #227
Comments
Approve. There are errors for both private and public remote empty repositories. |
Approve. |
approve |
After dragging myself through the call stacks of about a dozen files (repositories -> component -> repository -> index -> head -> core), I've finally narrowed it down to the incorrect awaiting of the repo head in core.ts - because the head doesn't exist, all subsequent statements depending on the head fail. There was no try/catch statement and the code assumed the head always existed. The solution I've settled on is to create an empty master/head. |
This appears to be much harder than anticipated due to the lack of documentation, probably because very few people have reason to create an empty repository without initializing it. |
Current progress is here: https://github.com/lirenn/VisualGit_SE701_2019_2/tree/fix-empty-heads |
Cloning an empty repository creates an error message and also prevents any file tracking from occurring when files in the cloned repository are added locally. The graph also doesn't update.
The text was updated successfully, but these errors were encountered: