lib/gitlab_git/blob.rb in gitlab_git-7.2.15 vs lib/gitlab_git/blob.rb in gitlab_git-7.2.16

- old
+ new

@@ -55,9 +55,11 @@ # # Blob.find_entry_by_path(repo, '1a', 'app/file.rb') # => '4a' # def find_entry_by_path(repository, root_id, path) root_tree = repository.lookup(root_id) + # Strip leading slashes + path.slice!(0) if path[0] == "/" path_arr = path.split('/') entry = root_tree.find do |entry| entry[:name] == path_arr[0] end