Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/xgit/repository/working_tree/read_tree_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule Xgit.Repository.WorkingTree.ReadTreeTest do
alias Xgit.Repository.OnDisk
alias Xgit.Repository.WorkingTree

describe "read_tree/2" do
describe "read_tree/3" do
test "happy path: empty dir cache" do
assert write_git_tree_and_read_back(
fn git_dir ->
Expand Down Expand Up @@ -448,7 +448,7 @@ defmodule Xgit.Repository.WorkingTree.ReadTreeTest do

# We want the *tree* to be present, but the dir cache should be empty.
# Otherwise, the subsequent call to `WorkingTree.dir_cache/1` could mask
# any failure in `WorkingTree.read_tree/2`.
# any failure in `WorkingTree.read_tree/3`.
{_output, 0} = System.cmd("git", ["read-tree", "--empty"], cd: ref)

{:ok, repo} = OnDisk.start_link(work_dir: ref)
Expand Down