Fix null pointer dereference in status.ByIndex #628
|
@ -69,9 +69,10 @@ func TestStatusNothing(t *testing.T) {
|
||||||
|
|
||||||
seedTestRepo(t, repo)
|
seedTestRepo(t, repo)
|
||||||
|
|
||||||
opts := &StatusOptions{}
|
opts := &StatusOptions{
|
||||||
opts.Show = StatusShowIndexAndWorkdir
|
Show: StatusShowIndexAndWorkdir,
|
||||||
opts.Flags = StatusOptIncludeUntracked | StatusOptRenamesHeadToIndex | StatusOptSortCaseSensitively
|
Flags: StatusOptIncludeUntracked | StatusOptRenamesHeadToIndex | StatusOptSortCaseSensitively,
|
||||||
|
}
|
||||||
|
|
||||||
statusList, err := repo.StatusList(opts)
|
statusList, err := repo.StatusList(opts)
|
||||||
checkFatal(t, err)
|
checkFatal(t, err)
|
||||||
|
|
Loading…
Reference in New Issue