This repository was archived by the owner on May 12, 2018. It is now read-only.
Commit d6c3928
committed
Merge branch 'handle-invalid-submodule' into 'master'
Handle invalid submodule
Add better error handling to the submodule processing in `Gitlab::Git::Repository`:
* Return an empty hash from `#submodules` when the specified commit doesn't have a `.gitmodules` file.
* Omit entries from the return value of `#submodules` when the entry in `.gitmodules` has an invalid path.
Fixes #7, gitlab-org/gitlab-ce#714, and gitlab-org/gitlab-ce#763. Also fixes one of the recent [comments](https://gitlab.com/gitlab-org/gitlab-ce/issues/333#note_367106) from gitlab-org/gitlab-ce#333.
/cc @jacobvosmaer @dzaporozhets
See merge request !142 files changed
+33
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
419 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
420 | 426 | | |
421 | 427 | | |
422 | 428 | | |
| |||
724 | 730 | | |
725 | 731 | | |
726 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
727 | 737 | | |
728 | 738 | | |
729 | 739 | | |
| |||
742 | 752 | | |
743 | 753 | | |
744 | 754 | | |
| 755 | + | |
745 | 756 | | |
746 | 757 | | |
747 | 758 | | |
748 | 759 | | |
749 | | - | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
750 | 765 | | |
751 | 766 | | |
752 | 767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | 163 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 164 | + | |
| 165 | + | |
169 | 166 | | |
170 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
194 | 205 | | |
195 | 206 | | |
196 | 207 | | |
| |||
0 commit comments