Disallow working directory commands in a bare repository.
[gitweb.git] / git-reset.sh
index 76c8a818d421c796141fae3835e1cb4726d23ef3..b9045bc762471b462c3c99a5357b4b30421ea49f 100755 (executable)
@@ -6,6 +6,7 @@ USAGE='[--mixed | --soft | --hard]  [<commit-ish>] [ [--] <paths>...]'
 SUBDIRECTORY_OK=Yes
 . git-sh-setup
 set_reflog_action "reset $*"
+require_work_tree
 
 update= reset_type=--mixed
 unset rev