Commit 0e8b0ad
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 7334628 commit 0e8b0ad
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
655 | 656 | | |
656 | 657 | | |
657 | 658 | | |
| |||
0 commit comments