diff options
author | EuAndreh <eu@euandre.org> | 2023-04-04 06:55:50 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-04 06:55:50 -0300 |
commit | b5b45e8701aa2a76acd8871a87ab4377942d30ad (patch) | |
tree | bfe5e221de5ecc28f10806b8dac0e37f121a3de1 /bin/vcs | |
parent | share/aux/cases/cp_if/aux/po4a-cfg.sh: Understand "*.html" as xhtml (diff) | |
download | dotfiles-b5b45e8701aa2a76acd8871a87ab4377942d30ad.tar.gz dotfiles-b5b45e8701aa2a76acd8871a87ab4377942d30ad.tar.xz |
bin/vcs: Also consider to be under Git when both $GIT_{DIR,WORK_TREE} are set
Diffstat (limited to 'bin/vcs')
-rwxr-xr-x | bin/vcs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ cvs guess_type() { - if [ -e "$1"/.git ]; then + if [ -e "$1"/.git ] || ([ -n "${GIT_DIR:-}" ] && [ -n "$GIT_WORK_TREE" ]); then echo git elif [ -e "$1"/.hg ]; then echo mercurial |