Commit 710c2ba
wt-status-deserialize: fix crash when -v is used
Fix crash in `git status -v` by setting `des_s->repo`
to a non-null value.
Upstream changes to eliminate use of `the_repository`
added a `repo` field to `struct status`. And calls in
`wt-status.c` to `repo_init_revisions()` were changed
to pass `s->repo` rather than `the_repository`.
The status deserialization code was not updated to
actually set `s->repo` before common code passed the
value to OID routines.
This caused a segfault when verbose output was requested.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>1 parent 729dca6 commit 710c2ba
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| 660 | + | |
660 | 661 | | |
661 | 662 | | |
662 | 663 | | |
| |||
0 commit comments