Fix update with git tool when module dir is under

an unresolved symlink.
pull/437/head
Eric Nielsen 2 years ago
parent 3bbddf2a23
commit df70a1ca99
No known key found for this signature in database
GPG Key ID: 47D1DBFA0765A1FB
  1. 11
      CHANGELOG.md
  2. 2
      src/tools/git.zsh.erb
  3. 4
      zimfw.zsh

@ -7,14 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
_No unreleased changes._
### Fixed
- Error in `zimfw update` with the `git` tool when module directory is under an
unresolved symlink.
## [1.5.0] - 2021-08-10
### Added
- Option to use the new `degit` tool in `zmodule`, that is able to install and update modules
from GitHub without requiring `git`. Modules are installed faster and take less disk space when
using this tool. It can be set as the default with `zstyle ':zim:zmodule' use 'degit'`.
- Option to use the new `degit` tool in `zmodule`, that is able to install and
update modules from GitHub without requiring `git`. Modules are installed
faster and take less disk space when using this tool. It can be set as the
default with `zstyle ':zim:zmodule' use 'degit'`.
### Fixed
- Force `core.autocrlf=false` when doing `git clone`.

@ -25,7 +25,7 @@ case ${ACTION} in
print_error "Error during cd ${DIR}"
return 1
fi
if [[ ${PWD} != $(command git rev-parse --show-toplevel 2>/dev/null) ]]; then
if [[ ${PWD:A} != ${$(command git rev-parse --show-toplevel 2>/dev/null):A} ]]; then
print_error "Module was not installed using git. Will not try to update. You can disable this with the zmodule option -z|--frozen."
return 1
fi

@ -595,7 +595,7 @@ case \${ACTION} in
print_error \"Error during cd \${DIR}\"
return 1
fi
if [[ \${PWD} != \$(command git rev-parse --show-toplevel 2>/dev/null) ]]; then
if [[ \${PWD:A} != \${\$(command git rev-parse --show-toplevel 2>/dev/null):A} ]]; then
print_error \"Module was not installed using git. Will not try to update. You can disable this with the zmodule option -z|--frozen.\"
return 1
fi
@ -660,7 +660,7 @@ esac
}
zimfw() {
local -r _zversion='1.5.0' zusage="Usage: %B${0}%b <action> [%B-q%b|%B-v%b]
local -r _zversion='1.5.1-SNAPSHOT' zusage="Usage: %B${0}%b <action> [%B-q%b|%B-v%b]
Actions:
%Bbuild%b Build %Binit.zsh%b and %Blogin_init.zsh%b

Loading…
Cancel
Save