Skip to content

Commit

Permalink
Merge pull request neovim#16019 from dundargoc/ci/commitlint/downgrad…
Browse files Browse the repository at this point in the history
…e-necessary-git-version

ci: allow older git versions when using lintcommit
  • Loading branch information
jamessan committed Oct 14, 2021
2 parents 6b9cb66 + 35c1362 commit 88e16a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lintcommit.lua
Expand Up @@ -106,7 +106,7 @@ end
function M.main(opt)
_trace = not opt or not not opt.trace

local branch = run({'git', 'branch', '--show-current'}, true)
local branch = run({'git', 'rev-parse', '--abbrev-ref', 'HEAD'}, true)
-- TODO(justinmk): check $GITHUB_REF
local ancestor = run({'git', 'merge-base', 'origin/master', branch})
if not ancestor then
Expand Down

0 comments on commit 88e16a7

Please sign in to comment.