Clean up write_in_full() users
[gitweb.git] / git-commit.sh
index c2beb76fe436279422ff5212aed573fb821bad7b..eddd863015b4829fc833ba5bc064720eaa4245be 100755 (executable)
@@ -6,6 +6,7 @@
 USAGE='[-a] [-s] [-v] [--no-verify] [-m <message> | -F <logfile> | (-C|-c) <commit>] [-u] [--amend] [-e] [--author <author>] [[-i | -o] <path>...]'
 SUBDIRECTORY_OK=Yes
 . git-sh-setup
+require_work_tree
 
 git-rev-parse --verify HEAD >/dev/null 2>&1 || initial_commit=t