Reduce value duplication in t9300-fast-import.
[gitweb.git] / git-checkout.sh
index 8f4356d49a4935ff4a238cad3d0f90760d3e1afd..a2b8e4fa4aa3607ce4981c84b9c6f9d31a9dec97 100755 (executable)
@@ -3,6 +3,7 @@
 USAGE='[-f] [-b <new_branch>] [-m] [<branch>] [<paths>...]'
 SUBDIRECTORY_OK=Sometimes
 . git-sh-setup
+require_work_tree
 
 old_name=HEAD
 old=$(git-rev-parse --verify $old_name 2>/dev/null)