Skip to content

Instantly share code, notes, and snippets.

/***************************************************************************/
/* Godot PCK extractor (pckext.cpp) */
/***************************************************************************/
/* This program is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
@bruvzg
bruvzg / gist:943838bfc48fcc8214862356627b16ff
Created April 12, 2020 18:54
Godot pre-commit hooks GUI (zenity).
diff --git a/misc/hooks/pre-commit-black b/misc/hooks/pre-commit-black
index 2dcc2e8cf1..3e6ac0fb8d 100755
--- a/misc/hooks/pre-commit-black
+++ b/misc/hooks/pre-commit-black
@@ -102,31 +102,26 @@ printf "and the black formatter rules:\n\n"
$READER "$patch"
printf "\n"
-# Allows us to read user input below, assigns stdin to keyboard
-exec < /dev/tty