# Undefined method \`sub!' when visiting \`/admin/upgrade\`

**URL:** <https://meta.discourse.org/t/undefined-method-sub-when-visiting-admin-upgrade/274682>\
**Category:** Self-hosting\
**Created:** [August 10, 2023, 2:17pm UTC](https://meta.discourse.org/t/undefined-method-sub-when-visiting-admin-upgrade/274682 "2023-08-10T14:17:24Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
**Post date:** [August 11, 2023, 7:39am UTC](https://meta.discourse.org/t/undefined-method-sub-when-visiting-admin-upgrade/274682/9 "2023-08-11T07:39:49Z")

</div>

Sometimes when people find that there is no .git subdirectory, it’s because someone made a simple copy from one place to another, and the copy missed out the dotfiles. This would never happen with a standard installation, but could happen where there is a bit of history of people doing things which they believe they understand. (Which I mean in a nice way, but it can cause mistakes.)

---

_[View the full topic](https://meta.discourse.org/t/undefined-method-sub-when-visiting-admin-upgrade/274682)._
