1
0
Fork 0
mirror of https://github.com/vbatts/git-validation.git synced 2025-06-04 11:02:27 +00:00

git & validation: skip git check on initial commit because it needs a range

Fixes #66

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2025-02-25 21:40:51 -05:00
parent 679e5cad8c
commit a41c47c06a
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
2 changed files with 25 additions and 0 deletions

View file

@ -47,6 +47,7 @@ func NewRunner(root string, rules []Rule, commitrange string, verbose bool) (*Ru
}
}
}
logrus.Debugf("[NewRunner] commitrange: %q", commitrange)
return &Runner{
Root: newroot,
Rules: rules,