diff options
Diffstat (limited to 'lib/dependabot/git.rb')
| -rw-r--r-- | lib/dependabot/git.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/dependabot/git.rb b/lib/dependabot/git.rb index fc1a9d9..1885480 100644 --- a/lib/dependabot/git.rb +++ b/lib/dependabot/git.rb @@ -34,12 +34,7 @@ module Dependabot private def stage(path) - repo.index.read_tree(repo.head.target.tree) - repo.index.add( - path: path, - oid: repo.write(File.binread(path), :blob), - mode: File.stat(path).mode - ) + repo.index.add(path) end end end |
