NoMethodError: undefined method `target' for nil:NilClass
https://sentry.gitlap.com/gitlab/gitlabcom/issues/10906/
NoMethodError: undefined method `target' for nil:NilClass
app/models/repository.rb:1237:in `block in commit_with_hooks'
current_head = find_branch(branch).target.id
app/services/git_hooks_service.rb:19:in `execute'
yield
lib/gitlab/metrics/instrumentation.rb:155:in `block in execute'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
lib/gitlab/metrics/method_call.rb:23:in `measure'
retval = yield
lib/gitlab/metrics/instrumentation.rb:155:in `execute'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
...
(115 additional frame(s) were not displayed)