Skip to content

Commit

Permalink
git ls-tree raises on non-zero exit
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Jan 27, 2012
1 parent 8b5449e commit 3fc864f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grit/tree.rb
Expand Up @@ -15,7 +15,7 @@ class Tree
#
# Returns Grit::Tree (baked)
def self.construct(repo, treeish, paths = [])
output = repo.git.ls_tree({}, treeish, *paths)
output = repo.git.ls_tree({:raise => true}, treeish, *paths)
self.allocate.construct_initialize(repo, treeish, output)
end

Expand Down

0 comments on commit 3fc864f

Please sign in to comment.