Fix update with git tool when module dir is under
an unresolved symlink.
This commit is contained in:
parent
3bbddf2a23
commit
df70a1ca99
3 changed files with 10 additions and 7 deletions
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -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…
Reference in a new issue