Extracted from https://github.com/src-d/modelforge/pull/36
Adds changes in the case where the index is either empty (meaning really empty, if it contains {} its fine) or non-existant in the repo. This means that there must be an index file in the repo at all time, even before init. If you want me to change this we will need to add some form of boolean so that during the initialization of the index we catche this error instead of aborting
Extracted from https://github.com/src-d/modelforge/pull/36 Adds changes in the case where the index is either empty (meaning really empty, if it contains
{}
its fine) or non-existant in the repo. This means that there must be an index file in the repo at all time, even before init. If you want me to change this we will need to add some form of boolean so that during the initialization of the index we catche this error instead of aborting