Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

git ls-tree raises on non-zero exit

  • Loading branch information...
commit 3fc864f3c637e06e2fa7a81f6b48a5df58a9bc5b 1 parent 8b5449e
@sr sr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/grit/tree.rb
View
2  lib/grit/tree.rb
@@ -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

0 comments on commit 3fc864f

Please sign in to comment.
Something went wrong with that request. Please try again.