This repository has been archived by the owner on Jul 2, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent gpg signing of commits (fixes qw3rtman#30)
When using git 2.x and the `commit.gpgsign` option is enabled, each commit is automatically signed with gpg. As noted by @johnp this usally means that the user has to enter a password, or unlock the gpg using some other method. This is a problem when having to leave the building because of fire. This commit solves the problem by adding the --no-gpg-sign flag to the `git commit` invocation if the git version being used starts with a "2". This is achieved by checking the output of `git version` and using grep to match the version number.
- Loading branch information