Skip to content
Snippets Groups Projects
Commit 1b9be5af authored by Zen Fu's avatar Zen Fu
Browse files

Skip validation when pushing new branches (#16064)

The Puppet code validation Git hook was exiting with an error when
receiving new branches because in those cases $oldrev equals 0{40}.

I experimented with a solution grepping the output of:

    git ls-tree --full-tree -r --name-only HEAD

But I thought the output was too extensive so for now I just skip
validation when pushing a new branch. We will always eventually hit the
pre-receive hook when pushing to master, anyway.
parent e17b00cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment