mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-21 13:00:57 +01:00
We currently detect Git repositories by finding the top level of the working tree, and if we fail to detect it, assume that we're not in a repository. However, there's a case we don't consider: a bare repository. Let's detect if the user is in a bare repository by checking if gitdir is set, and if so, using that if there is no working tree. We now detect bare Git repositories with vcs_info, as expected. |
||
|---|---|---|
| .. | ||
| .distfiles | ||
| VCS_INFO_detect_bzr | ||
| VCS_INFO_detect_cdv | ||
| VCS_INFO_detect_cvs | ||
| VCS_INFO_detect_darcs | ||
| VCS_INFO_detect_fossil | ||
| VCS_INFO_detect_git | ||
| VCS_INFO_detect_hg | ||
| VCS_INFO_detect_mtn | ||
| VCS_INFO_detect_p4 | ||
| VCS_INFO_detect_svk | ||
| VCS_INFO_detect_svn | ||
| VCS_INFO_detect_tla | ||
| VCS_INFO_get_data_bzr | ||
| VCS_INFO_get_data_cdv | ||
| VCS_INFO_get_data_cvs | ||
| VCS_INFO_get_data_darcs | ||
| VCS_INFO_get_data_fossil | ||
| VCS_INFO_get_data_git | ||
| VCS_INFO_get_data_hg | ||
| VCS_INFO_get_data_mtn | ||
| VCS_INFO_get_data_p4 | ||
| VCS_INFO_get_data_svk | ||
| VCS_INFO_get_data_svn | ||
| VCS_INFO_get_data_tla | ||