Commit 24d43d8
committed
Debug to detect when
WIP for fixing #299 where Terraform tries to reset the
`default_branch` to null after a repository is added on
GitLab side.
The `default_branch` defaults to `master` on GitLab side,
but it is only set if the repository is not empty.
Otherwise it is `null` on remote side.
The commit generates the following output, which shows
no trace of `null` value from remote.
2020/06/19 20:55:55 [DEBUG] gitlab.Project default_branch (string) ""
2020/06/19 20:55:55 [DEBUG] d.Get default_branch (string) ""
2020/06/19 20:55:55 [DEBUG] d.GetOk default_branch (string) "" - false
2020/06/19 20:55:55 [DEBUG] d.HasChange default_branch false
2020/06/19 20:55:55 [DEBUG] d.GetChange default_branch (string) "", (string) ""
But the actual response shows that `null` was returned in
JSON.
2020/06/19 20:55:55 [DEBUG] GitLab API Response Details:
...
"default_branch": null,default_branch is set in .tf file1 parent 52ed810 commit 24d43d8
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
216 | 226 | | |
217 | 227 | | |
218 | 228 | | |
| |||
0 commit comments