-
-
Notifications
You must be signed in to change notification settings - Fork 958
Commit c09ac1a
committed
Test InvalidGitRepositoryError in repo subdir
A Repo object can of course be constructed from a path to a
directory that is the root of an existing repository, and raises
InvalidGitRepositoryError on a directory that is outside of any
repository. Tests intended to show both conditions already exist.
This adds a test to verify that InvalidGitRepositoryError is also
raised when an attempt is made to construct a Repo object from a
path to a directory that is not the root of a repository but that
is known to be located inside an existing git repository.1 parent 9277ff5 commit c09ac1a
1 file changed
+12
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 | + | ||
81 | + | ||
82 | + | ||
80 | 83 |
| |
81 | 84 |
| |
82 | 85 |
| |
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
83 | 94 |
| |
84 | 95 |
| |
85 | 96 |
| |
| |||
122 | 133 |
| |
123 | 134 |
| |
124 | 135 |
| |
125 | - | ||
136 | + | ||
126 | 137 |
| |
127 | 138 |
| |
128 | 139 |
| |
|
0 commit comments