Commit 69fe57e
submodule--helper: use submodule_name_to_gitdir in add_submodule
While testing submodule gitdir path encoding, I noticed submodule--helper
is still using a hardcoded modules gitdir path leading to test failures.
Call the submodule_name_to_gitdir() helper instead, which was invented
exactly for this purpose and is already used by all the other locations
which work on gitdirs.
Also narrow the scope of the submod_gitdir_path variable which is not
used anymore in the updated "else" branch.
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 4badef0 commit 69fe57e
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3187 | 3187 | | |
3188 | 3188 | | |
3189 | 3189 | | |
3190 | | - | |
3191 | 3190 | | |
3192 | 3191 | | |
3193 | 3192 | | |
3194 | 3193 | | |
3195 | 3194 | | |
3196 | 3195 | | |
| 3196 | + | |
3197 | 3197 | | |
3198 | 3198 | | |
3199 | 3199 | | |
| |||
3207 | 3207 | | |
3208 | 3208 | | |
3209 | 3209 | | |
| 3210 | + | |
3210 | 3211 | | |
3211 | | - | |
| 3212 | + | |
3212 | 3213 | | |
3213 | | - | |
| 3214 | + | |
3214 | 3215 | | |
3215 | 3216 | | |
3216 | 3217 | | |
| |||
3219 | 3220 | | |
3220 | 3221 | | |
3221 | 3222 | | |
3222 | | - | |
3223 | | - | |
| 3223 | + | |
| 3224 | + | |
3224 | 3225 | | |
3225 | 3226 | | |
3226 | 3227 | | |
| |||
3238 | 3239 | | |
3239 | 3240 | | |
3240 | 3241 | | |
3241 | | - | |
| 3242 | + | |
3242 | 3243 | | |
3243 | 3244 | | |
3244 | 3245 | | |
| |||
0 commit comments