lib/overcommit/hook_context/pre_push.rb in overcommit-jeygeethanmedia-0.53.1.2 vs lib/overcommit/hook_context/pre_push.rb in overcommit-jeygeethanmedia-0.58.0
- old
+ new
@@ -74,9 +74,10 @@
"#{remote_sha1}..#{local_sha1}"
end
def overwritten_commits
return @overwritten_commits if defined? @overwritten_commits
+
result = Overcommit::Subprocess.spawn(%W[git rev-list #{remote_sha1} ^#{local_sha1}])
if result.success?
result.stdout.split("\n")
else
raise Overcommit::Exceptions::GitRevListError,