diff options
author | James McCoy <jamessan@jamessan.com> | 2021-10-14 07:10:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 07:10:33 -0400 |
commit | 88e16a7f30b23c03c2207086f613190e685a67c3 (patch) | |
tree | 834e4be06a7b2e92770b01033117d1fec6441d93 /scripts/lintcommit.lua | |
parent | 6b9cb665fa101299d8a6f67d6d7e4705da13abee (diff) | |
parent | 35c13620a1179ec566b361241ac0a097ebb0bc34 (diff) | |
download | rneovim-88e16a7f30b23c03c2207086f613190e685a67c3.tar.gz rneovim-88e16a7f30b23c03c2207086f613190e685a67c3.tar.bz2 rneovim-88e16a7f30b23c03c2207086f613190e685a67c3.zip |
Merge pull request #16019 from dundargoc/ci/commitlint/downgrade-necessary-git-version
ci: allow older git versions when using lintcommit
Diffstat (limited to 'scripts/lintcommit.lua')
-rw-r--r-- | scripts/lintcommit.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lintcommit.lua b/scripts/lintcommit.lua index 98f9da246c..c30a1b10da 100644 --- a/scripts/lintcommit.lua +++ b/scripts/lintcommit.lua @@ -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 |