Can I check the results of the git pre-receive hook before a push?

The company I work for has a typical git setup to track code. We're using the git flow model, which is implemented by some custom scripts. Basically, our "feature finish" is this: 1) merge local branch into local develop 2) delete local branch 3) git push develop to remote.

Just before a release cut is taken, we put a code freeze on develop to prevent people pushing to the branch while the cut is taken. The problem with this is that the local branch gets deleted before we know if the code freeze in place.

I'd like to be able to check if the pre-receive will decline before I try to git push develop to remote. Is this possible?

Category:git Views:8 Time:2019-01-12

Related post

Copyright (C), All Rights Reserved.

processed in 0.179 (s). 11 q(s)