Commit 3941e79
Chris Patterson
git: always fetch specified source-commit before using (#2968)
Two cases where git will fail on specified source-commit:
- commit ID is not in specified branch history (or master, if no branch
is specified).
- source-depth is used which doesn't contain neccessary commit ID.
This commit changes the git module to fetch the reference from origin
before attempting to use it.
LP: #1817907
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>1 parent bfaec2d commit 3941e79
2 files changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
153 | 166 | | |
154 | 167 | | |
155 | 168 | | |
| |||
158 | 171 | | |
159 | 172 | | |
160 | 173 | | |
| 174 | + | |
161 | 175 | | |
162 | 176 | | |
163 | 177 | | |
| |||
201 | 215 | | |
202 | 216 | | |
203 | 217 | | |
| 218 | + | |
| 219 | + | |
204 | 220 | | |
205 | 221 | | |
206 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
251 | 261 | | |
252 | 262 | | |
253 | 263 | | |
| |||
0 commit comments