forked from exercism/configlet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The user can now tell the program to use an existing `problem-specifications` directory, in which case the program does a `fetch` rather than making a temporary shallow clone. This is one of the biggest possible speed optimisations, given that the program running time in non-interactive mode is limited by the time taken to establish an up-to-date `problem-specifications`directory. However, in the future we could add an `--offline` option (or similar). This commit also makes it easier to add tests. Decisions: - Show an error if the given `problem-specifications` working directory is not clean, rather than asking the user or stashing changes. - Try to be strict about the user's `problem-specifications` directory, and do not silently `checkout` or `merge`, at least for now. - Don't assume the user has a remote named 'upstream'. - Allow the given `problem-specifications` repo to be a shallow clone: don't check that it's actually a `problem-specifications` repo by requiring it to contain some specified SHA-1. Closes: exercism#47
- Loading branch information
Showing
2 changed files
with
75 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters