Skip to content

Commit

Permalink
Fixes RuboCop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fulf committed Feb 24, 2024
1 parent dbc5c34 commit eea1bed
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions spec/overcommit/git_repo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
end

submodule = repo do
`git -c protocol.file.allow=always submodule add #{nested_submodule} nested-sub 2>&1 > #{File::NULL}`
`git -c protocol.file.allow=always submodule add \
#{nested_submodule} nested-sub 2>&1 > #{File::NULL}`
`git commit -m "Add nested submodule"`
end

Expand Down Expand Up @@ -178,7 +179,8 @@
`git commit --allow-empty -m "Submodule commit"`
end

`git -c protocol.file.allow=always submodule add #{submodule} #{submodule_dir} 2>&1 > #{File::NULL}`
`git -c protocol.file.allow=always submodule add \
#{submodule} #{submodule_dir} 2>&1 > #{File::NULL}`
`git commit -m "Add submodule"`
end

Expand Down Expand Up @@ -343,7 +345,8 @@
`git commit --allow-empty -m "Another submodule"`
end

`git -c protocol.file.allow=always submodule add #{another_submodule} another-sub-repo 2>&1 > #{File::NULL}`
`git -c protocol.file.allow=always submodule add \
#{another_submodule} another-sub-repo 2>&1 > #{File::NULL}`
end

it { should be_empty }
Expand All @@ -369,7 +372,8 @@
`git commit --allow-empty -m "Another submodule"`
end

`git -c protocol.file.allow=always submodule add #{another_submodule} yet-another-sub-repo 2>&1 > #{File::NULL}`
`git -c protocol.file.allow=always submodule add \
#{another_submodule} yet-another-sub-repo 2>&1 > #{File::NULL}`
`git commit -m "Add yet another submodule"`
`git rm sub-repo`
`git rm yet-another-sub-repo`
Expand Down

0 comments on commit eea1bed

Please sign in to comment.