diff options
Diffstat (limited to 'git-credential-manager-core.install')
-rw-r--r-- | git-credential-manager-core.install | 53 |
1 files changed, 41 insertions, 12 deletions
diff --git a/git-credential-manager-core.install b/git-credential-manager-core.install index 96386db597f2..5d23f24fbdaa 100644 --- a/git-credential-manager-core.install +++ b/git-credential-manager-core.install @@ -1,17 +1,46 @@ -## arg 1: the new package version post_install() { - echo "Remember to execute:" - echo - echo " git-credential-manager-core configure" - echo - echo "In order to use Git-Credential-Manager-Core." - echo - echo "Additionally, follow the guide here:" - echo - echo " https://aka.ms/gcmcore-linuxcredstores" - echo + cat << EOF +Configure Git to use Git Credential Manager via: + + git-credential-manager configure + +Additionally, follow the guide here: + +https://aka.ms/gcmcore-linuxcredstores + +EOF +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + if [ $(vercmp "$2" 2.0.877) -lt 0 -a $(vercmp "$1" 2.0.877) -ge 0 ] + then + cat << EOF +Since version 2.0.877, Git Credential Manager binary was changed from: + git-credential-manager-core +to: + git-credential-manager + +Ensure all the paths are correct within your Git configuration via e.g.: + + git config --global --edit + +You can also get the change via: + git-credential-manager configure +EOF + fi } post_remove() { - echo "Control your 'git config' and remove all the informations related to Git-Credential-Manager-Core" +cat << EOF +You should also modify your user config and remove references to +Git Credential Manager. + +You can do so via e.g. : + + git config --global --edit + +and remove the information for Git Credential Manager. +EOF } |