forked fromgitpython-developers/GitPython
- Notifications
You must be signed in to change notification settings - Fork0
Commit26fc586
committed
Verified that it apparently is impossible to add empty submodules using git-python.
This is the case with `git submodule add` as well. This makes sense asan empty git repository doesn't have a commit, which needs to be specifiedas SHA in the parent repositories tree entry for the respective submodule.When manually adding the empty submodule to the .gitmodules file, git-pythonwill throw another error related to the inability to find the submodulein the index.Even if an iteration would be possible, git-python would now throwa BadName exception, which clearly indicates that the 'HEAD' revisionis invalid (as it doesn't point to any commit).Fixesgitpython-developers#152Fixesgitpython-developers#1051 parent508807e commit26fc586
1 file changed
+20
-4
lines changedLines changed: 20 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 |
| |
4 | 9 |
| |
5 | 10 |
| |
6 | 11 |
| |
7 | 12 |
| |
| 13 | + | |
8 | 14 |
| |
9 | 15 |
| |
10 | 16 |
| |
11 | 17 |
| |
12 | 18 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 | 19 |
| |
18 | 20 |
| |
19 | 21 |
| |
| |||
597 | 599 |
| |
598 | 600 |
| |
599 | 601 |
| |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + |
0 commit comments
Comments
(0)